public void Pay() { // Arrange HomeController controller = new HomeController(); // Act //ViewResult result = controller.Pay(new SelectModel()) as ViewResult; // Assert //Assert.IsNotNull(result); }
public void Index() { // Arrange HomeController controller = new HomeController(); // Act HomeModel model = new HomeModel(); ViewResult result = controller.Index(model) as ViewResult; // Assert Assert.AreEqual("Welcome to ASP.NET MVC!", result.ViewBag.Message); }