public void Login_EmptyUserPass()
 {
     var controller = new UserController();
     var passResult = controller.Login("Dude", string.Empty);
     Assert.IsNotNull((ViewResult)passResult);
     Assert.IsNotNull(passResult);
 }
 public void Login_EmptyUser()
 {
     var controller = new UserController();
     var result = controller.Login(string.Empty, "123");
     Assert.IsNotNull((ViewResult)result);
     Assert.IsNotNull(result);
     //Assert.Equals(result
 }
 public void Login_ValidateUser()
 {
     var controller = new UserController();
     var userFromQuerry = controller.readQuarry();
     if (userFromQuerry != null)
     {
         Assert.AreEqual(userFromQuerry.Name, "Bob");
         Assert.AreEqual(userFromQuerry.pass, "easyName"); // "easypass"
     }
     else
     {
         Assert.Fail("You failed!");
     }
 }