Automation.UI.Tests.TestConditionMatchers.TestStartsWithMatcher C# (CSharp) Method

TestStartsWithMatcher() private method

private TestStartsWithMatcher ( ) : void
return void
        public void TestStartsWithMatcher()
        {
            const string nameToSearch = "UIAutomation";
            // Fire the query.
            var window = Query().Where()
                .Name().StartsWith(nameToSearch)
                .Select().FirstResult();
            // Validate the result.
            Assert.IsNotNull(window);
            Assert.IsTrue(window.Element.Current.Name.StartsWith(nameToSearch));
        }