Esempio n. 1
0
        public void TaskList_Index_Returns_ViewResult()
        {
            //Arrange
            TaskListsController controller = new TaskListsController();

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

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

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

            //Assert
              Assert.IsNotNull(result);
        }