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

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

            // Assert
            Assert.AreEqual("Your application description page.", result.ViewBag.Message);
        }
示例#2
0
        public void ViewTestIndex()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.IsNotNull(result);
        }
示例#3
0
 public void RequestChangeTest()
 {
     HomeController controller = new HomeController();
     ViewResult result = controller.RequestChange() as ViewResult;
     Assert.IsNotNull(result);
 }