public void Detail_WhenCalled_IsPassedExperimentData() { // Arrange // Act ViewResult result = (ViewResult)_controller.Details(1); Experiment ex = result.ViewData.Model as Experiment; // Assert Assert.AreEqual(ex, experiment1); }