public void Dispose() { //Arrange FakeGenreBL fake = new FakeGenreBL(); GenresController controller = new GenresController(fake); controller.testCase = true; //var result = (VideoGame)((ViewResult)controller.Details(1)).Model; // Act controller.Dispose(); // Assert Assert.IsTrue(true); }