Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }