Index: Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/Views/WaveConditionsInputViewTest.cs =================================================================== diff -u -r039b01ae7883acfaf0ab5528ff27648f439334fe -r0e3838802bb93401ed6b70766299b8f8851b70c2 --- Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/Views/WaveConditionsInputViewTest.cs (.../WaveConditionsInputViewTest.cs) (revision 039b01ae7883acfaf0ab5528ff27648f439334fe) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/Views/WaveConditionsInputViewTest.cs (.../WaveConditionsInputViewTest.cs) (revision 0e3838802bb93401ed6b70766299b8f8851b70c2) @@ -55,21 +55,21 @@ private const int revetmentBaseChartDataIndex = 7; private const int revetmentChartDataIndex = 8; - public static IEnumerable WaterLevelUpdateFunctions + private static IEnumerable WaterLevelUpdateFunctions { get { yield return new TestCaseData(new Func(wci => { - var expectedWaterLevel = 5.2; + const double expectedWaterLevel = 5.2; wci.HydraulicBoundaryLocation.DesignWaterLevelOutput = new TestHydraulicBoundaryLocationOutput(expectedWaterLevel, CalculationConvergence.CalculatedConverged); wci.HydraulicBoundaryLocation.NotifyObservers(); return expectedWaterLevel; })).SetName("UpdateWaterLevel"); yield return new TestCaseData(new Func(wci => { - var expectedWaterLevel = 2.66; + const double expectedWaterLevel = 2.66; var newLocation = new TestHydraulicBoundaryLocation(); wci.HydraulicBoundaryLocation = newLocation; @@ -83,10 +83,12 @@ yield return new TestCaseData(new Func(wci => { - var expectedWaterLevel = 8.33; + const double expectedWaterLevel = 8.33; - var newLocation = new TestHydraulicBoundaryLocation(); - newLocation.DesignWaterLevelOutput = new TestHydraulicBoundaryLocationOutput(expectedWaterLevel, CalculationConvergence.CalculatedConverged); + var newLocation = new TestHydraulicBoundaryLocation + { + DesignWaterLevelOutput = new TestHydraulicBoundaryLocationOutput(expectedWaterLevel, CalculationConvergence.CalculatedConverged) + }; wci.HydraulicBoundaryLocation = newLocation; wci.NotifyObservers();