コード例 #1
0
 public virtual void MarkKingCanMakeAjaxRequests()
 {
     using (var browser = new Browser { AutoSignIn = true, UserName = "******", Password = "******" })
     {
         browser.GoTo(Bugz.RawUrl);
         Assert.That(browser.Body.Text, Is.Not.Empty, "Authorized users can make AJAX requests.");
     }
 }
コード例 #2
0
 public virtual void MarkKingCanSeeCategorizer()
 {
     using (var browser = new Browser { AutoSignIn = true, UserName = "******", Password = "******" })
     {
         browser.GoTo(Bugz.Categorized.Url);
         var page = browser.Page<FogBugzPage>();
         Assert.That(page.Categorizer.Exists, Is.True, "Authorized users can see the FogBugz categorizer.");
     }
 }
コード例 #3
0
 public virtual void BeforeEachFixture()
 {
     _browser = new Browser { AutoSignIn = true, UserName = UserName, Password = "******" };
     _page = _browser.Page<FogBugzPage>();
 }
コード例 #4
0
 public virtual void AfterEachFixture()
 {
     _browser.Dispose();
     _browser = null;
 }