public void TestAlbumDeleteItem() { //Arrange var SqlLiteDataMock = new Mock <IMusicData>(); var AlbumController = new AlbumController(SqlLiteDataMock.Object); //Act ActionResult actionResult = AlbumController.AlbumDeleteItem(-1); // Assert Assert.IsType <NotFoundObjectResult>(actionResult); }