public void About_AsksForAboutView() { Mock <EmployeeService> mock = new Mock <EmployeeService>(); EmployeeController controller = GetNewEmployeeController(mock.Object, null, null); ViewResult result = controller.About() as ViewResult; Assert.AreEqual("About", result.ViewName); }
public void About() { // Arrange EmployeeController controller = new EmployeeController(); // Act ViewResult result = controller.About() as ViewResult; // Assert Assert.AreEqual("Your application description page.", result.ViewBag.Message); }