public void Help() { // Arrange var controller = new HomeController(); // Act var result = controller.Help(); // Assert Assert.IsNotNull(result); }
public void HomeIndexRedirectsToVirtualMachine() { // Arrange var controller = new HomeController(); // Act var result = controller.Index() as RedirectToRouteResult; // Assert Assert.AreEqual("Index", result.RouteValues["action"]); Assert.AreEqual("VirtualMachine", result.RouteValues["controller"]); }