public void IndexViewError() { //arrange //handled on TestInitialized //act var result = controller.Create(areas[0]); if (result is ViewResult) { var viewREsult = result as ViewResult; Assert.AreEqual("Index", viewREsult.ViewName); } }
public void CreateViewLoads() { // Arrange controller = new AreasController(); // Act ViewResult result = controller.Create() as ViewResult; // Assert Assert.AreEqual("Create", result.ViewName); }