Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void CanRenderIndexView() { var result = _controller.Index(); var viewResult = result.ShouldBeAssignableTo <ViewResult>(); viewResult.ViewData.ModelState.IsValid.ShouldBeTrue(); viewResult.ViewName.ShouldBeNull(); }