示例#1
0
        public void Contact()
        {
            // Arrange
            HomeController controller = new HomeController();

            // Act
            ViewResult result = controller.Contact() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
示例#2
0
 public void ReturnTheContactView()
 {
     var homeController = new HomeController();
      ViewResult viewResult = (ViewResult)homeController.Contact();
      Assert.AreEqual("Contact", viewResult.ViewName);
 }