public void LoginTest1() { String url = "/Help/Index"; HomeController controller = new HomeController(); ActionResult result = controller.Login(url); Assert.IsNotNull(result); }
public void LoginTest() { using (TransactionScope transaction = new TransactionScope()) { UserLoginModel model = new UserLoginModel(); HomeController controller = new HomeController(); model.Password = "******"; model.Username = "******"; ActionResult result = controller.Login(model, null); Assert.IsNotNull(result); } }