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

TestRegexMatcher() private method

private TestRegexMatcher ( ) : void
return void
        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));
        }