public void Index() { NewsletterController NLC = new NewsletterController(); var result = NLC.Index() as ViewResult; result.Should().NotBeNull(); }
public void Get_ViewResult_Index() { NewsletterController controller = new NewsletterController(_db); IActionResult result = controller.Index(); Assert.IsType <ViewResult>(result); }
public void Get_ViewResult_Index_Test() { NewsletterController controller = new NewsletterController(); var result = controller.Index(); Assert.IsType <ViewResult>(result); }
public void Get_ViewResult_Index_Test() { //Arrange NewsletterController controller = new NewsletterController(); //Act var result = controller.Index(); //Assert Assert.IsType <ViewResult>(result); }
public void NewsletterEnrollReturnsView() { NewsletterController ctrl = new NewsletterController(); Assert.IsType <ViewResult>(ctrl.Index()); }