public void Controller_Word_Details() { // Arrange // Act ActionResult result = controller.Details() as ActionResult; // Assert Assert.IsNotNull(result, "Expected a non null action result"); // Act result = controller.Details(-1) as ActionResult; // Assert Assert.IsInstanceOfType(result, typeof(HttpNotFoundResult), "Expected Http not found on querying nonexisting word"); }