public void InValidUserCredentialsCanNotLoginTest(string username, string password)
 {
     using (DnkBrowser browser = new DnkBrowser()) {
         browser.Login(username, password);
         Assert.IsTrue(Regex.IsMatch(browser.Html, "Username and password do not match", RegexOptions.IgnoreCase));
     }
 }
 public void ValidUserCredentialsCanLoginTest(string username, string password)
 {
     using (DnkBrowser browser = new DnkBrowser()) {
         browser.Login(username, password);
         Assert.IsTrue(Regex.IsMatch(browser.Html, String.Format(@"Welcome <a href=""/users/{0}"">{0}</a>", username), RegexOptions.IgnoreCase));
     }
 }
 public void ValidUserCredentialsCanLoginTest(string username, string password)
 {
     using (DnkBrowser browser = new DnkBrowser()) {
         browser.Login(username, password);
         Assert.IsTrue(Regex.IsMatch(browser.Html, String.Format(@"Welcome <a href=""/users/{0}"">{0}</a>", username), RegexOptions.IgnoreCase));
     }
 }
 public void InValidUserCredentialsCanNotLoginTest(string username, string password)
 {
     using (DnkBrowser browser = new DnkBrowser()) {
         browser.Login(username, password);
         Assert.IsTrue(Regex.IsMatch(browser.Html, "Username and password do not match", RegexOptions.IgnoreCase));
     }
 }