public void ShouldReturnView() { var ctrl = new GateInController(); var result = ctrl.Index(); Assert.NotNull(result); Assert.IsType<ViewResult>(result); }
public void ShouldReturnsView() { using (var app = new App(testing: true)) { var ctrl = new GateInController(null, app); var r = ctrl.Index(); Assert.NotNull(r); Assert.IsType<ViewResult>(r); } }