예제 #1
0
        public void TaskList_Index_Returns_ViewResult()
        {
            //Arrange
            TaskListsController controller = new TaskListsController();

            //Act
            var actual = controller.Index();

            //Assert
            Assert.IsInstanceOf<ViewResult>(actual);
        }
예제 #2
0
        public void TaskList_Index_Returns_ViewResult()
        {
            //Arrange
               TaskListsController controller = new TaskListsController();

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

            //Assert
              Assert.IsNotNull(result);
        }