Skip to content

Instantly share code, notes, and snippets.

@bzbetty
Created December 20, 2012 07:23
Show Gist options
  • Save bzbetty/4343527 to your computer and use it in GitHub Desktop.
Save bzbetty/4343527 to your computer and use it in GitHub Desktop.
[TestMethod]
public void Login_Success() {
AuthenticationController controller = new AuthenticationController();
ActionResult result = controller.Login(“user”, “123”);
Assert.IsTrue(result.GetType() == typeof(LoginResult));
Assert.AreEqual(“user”, ((LoginResult)result).Username);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment