public void TestRegexMatcher()
{
const string nameToSearch = @"[\w]+ - Microsoft Visual Studio";
// Fire the query.
var window = Query().Where()
.Name().Matches(nameToSearch)
.Select().FirstResult();
// Validate the result.
Assert.IsNotNull(window);
Assert.IsTrue(new Regex(nameToSearch).IsMatch(window.Element.Current.Name));
}