コード例 #1
0
        public void Edit_WhenCalled_IsPassedExperimentData()
        {
            // Arrange

            // Act
            ViewResult result = (ViewResult)_controller.Edit(2, "");

            Experiment ex = result.ViewData.Model as Experiment;

            // Assert
            Assert.AreEqual(ex, experiment2);
        }