public void DeleteConfirmedNoId() { // act ViewResult actual = controller.DeleteConfirmed(null); // assert Assert.AreEqual("Error", actual.ViewName); }
public void DeleteConfirmedValidAlbum() { // Act RedirectToRouteResult actual = (RedirectToRouteResult)controller.DeleteConfirmed(1); // Assert Assert.AreEqual("Index", actual.RouteValues["action"]); }
public void DeletePass() { // arrange //var album = new Album() //{ // AlbumId = 4, // Title = "Album 4", // Price = 44 //}; // act RedirectToRouteResult actual = (RedirectToRouteResult)controller.DeleteConfirmed(3); //ViewResult actual = controller.DeleteConfirmed(album.AlbumId); //var actual = (RedirectToRouteResult)controller.DeleteConfirmed(albums[0].AlbumId); // assert Assert.AreEqual("Index", actual.RouteValues["action"]); //Assert.AreEqual("Index", actual.ViewName); }