Example #1
0
        public void Index()
        {
            // Arrange
            HomeController controller = new HomeController();

            // Act
            RedirectResult result = controller.Index() as RedirectResult;

            // Assert
            Assert.AreEqual("default.htm", result.Url);
        }
Example #2
0
        public void Contact()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.IsNotNull(result);
        }