Beispiel #1
0
 public void HasContentMatching_example()
 {
     Assert.That(Browser, Shows.Content(new Regex(@"This.is.what.we.are.looking.for")));
     Assert.That(Browser.HasContentMatch(new Regex(@"This.is.not.in.the.page")), Is.False);
     Assert.Throws <AssertionException>(() => Assert.That(Browser,
                                                          Shows.Content(new Regex(@"This.is.not.in.the.page"))));
 }
Beispiel #2
0
        public void HasContent_example()
        {
            Assert.That(browser, Shows.Content("This is what we are looking for"));
            Assert.That(browser.HasContent("This is not in the page"), Is.False);

            Assert.Throws <AssertionException>(() => Assert.That(browser, Shows.Content("This is not in the page")));
        }
Beispiel #3
0
 public void AssertCurrentViewingUsers(string userNameText)
 {
     Assert.That(Browser.FindCss(".current-users"), Shows.Content(userNameText));
 }
Beispiel #4
0
 public void ThenIShouldSee(string text)
 {
     Assert.That(Browser, Shows.Content(text));
 }
Beispiel #5
0
 public void ThenTheResultShouldBeOnTheScreenWithUX(int p0)
 {
     Assert.That(_browser, Shows.Content("Ofrecido por Google en: English"));
 }
Beispiel #6
0
 public void ThenIShouldBeAbleToSeeThatSite()
 {
     Assert.That(_browser, Shows.Content("Hi from tenant Default - Orchard VNext Rocks"));
 }