public void Index_ReturnsView() { var controller = new VolunteerController(); ActionResult result = controller.Index(); Assert.IsInstanceOf(typeof(ViewResult), result); }
public void Index_Action_Returns_View() { //Act var controller = new VolunteerController(_waitListHelper, _volunteerRepository, _jobRoleRepository, _notificationService, _technologyRepository, _experienceLevelRepository); var result = controller.Index(); //Assert result.AssertViewRendered(); }
public void VolunteerController_Index_Test() { //Arrange VolunteerController controller = new VolunteerController(); //Act ViewResult result = (ViewResult)controller.Index(); //Assert Assert.IsNotNull(result); }