public void ActionCreateIsPartialViewResult() { var result = _albumsController.Create() as PartialViewResult; Assert.IsNotNull(result); Assert.IsInstanceOfType(result, typeof(PartialViewResult)); }
public void AlbumControllerCreateNotNull() { var albumController = new AlbumsController(null, null); var result = albumController.Create(); Assert.IsNotNull(result); }
public void CreateViewLoads() { // act var result = (ViewResult)controller.Create(); // assert Assert.AreEqual("Create", result.ViewName); }
public void CreateReturnsAView() { //Act ViewResult result = (ViewResult)controller.Create(); //Assert Assert.AreEqual("Create", result.ViewName); }
public void AlbumsCreateTest() { // Arrange AlbumsController controller2 = new AlbumsController(); // Act var result2 = controller2.Create(); // Assert Assert.IsNotNull(result2); }