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

TestContainsMatcher() private method

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