コード例 #1
0
            public void Returns_ViewResult_With_Description_Matching_Class_Description()
            {
                var controller = new HomeController();
                var result = controller.About() as ViewResult;

                Assert.AreEqual(HomeController.AboutFeedpaperDescription, result.ViewBag.Description);
            }
コード例 #2
0
        public void Index()
        {
            var controller = new HomeController();
            var result = controller.Index() as ViewResult;

            Assert.IsNotNull(result.ViewBag.Message);
        }
コード例 #3
0
        public void Contact()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.IsNotNull(result);
        }
コード例 #4
0
            public void Returns_Non_Null_ViewResult()
            {
                var controller = new HomeController();

                Assert.IsNotNull(controller.About() as ViewResult);
            }