public void TestNotCondition()
{
const string nameToSearch = "Visual Studio";
// Fire the query.
var window = Query().Where()
.Not().Name().StartsWith(nameToSearch)
.Select().FirstResult();
// Validate the result.
Assert.IsNotNull(window);
Assert.IsFalse(window.Element.Current.Name.StartsWith(nameToSearch));
}