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

TestEndsWithMatcher() private method

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