コード例 #1
0
        public void Index_ReturnsView()
        {
            var          controller = new VolunteerController();
            ActionResult result     = controller.Index();

            Assert.IsInstanceOf(typeof(ViewResult), result);
        }
コード例 #2
0
        public void Index_Action_Returns_View()
        {
            //Act
            var controller = new VolunteerController(_waitListHelper, _volunteerRepository, _jobRoleRepository, _notificationService, _technologyRepository, _experienceLevelRepository);
            var result     = controller.Index();

            //Assert
            result.AssertViewRendered();
        }
コード例 #3
0
        public void VolunteerController_Index_Test()
        {
            //Arrange
            VolunteerController controller = new VolunteerController();

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

            //Assert
            Assert.IsNotNull(result);
        }