Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs =================================================================== diff -u -r8142644ec1337be8032e9214b1f103c85d9037f7 -r4c1b7cae9e302e07399e1045dac0fe81f1dbe3b5 --- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs (.../PipingInputContextPropertiesTest.cs) (revision 8142644ec1337be8032e9214b1f103c85d9037f7) +++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/PropertyClasses/PipingInputContextPropertiesTest.cs (.../PipingInputContextPropertiesTest.cs) (revision 4c1b7cae9e302e07399e1045dac0fe81f1dbe3b5) @@ -760,7 +760,7 @@ } [Test] - public void GivenAssessmentLevelSetWithHydraulicBoundaryLocation_WhenNewAssessmentLevel_UpdateAssessmentLevel() + public void GivenAssessmentLevelSetWithHydraulicBoundaryLocation_WhenNewAssessmentLevel_UpdateAssessmentLevelAndRemovesLocation() { // Given var mocks = new MockRepository(); @@ -796,9 +796,8 @@ // Then Assert.AreEqual(2, properties.AssessmentLevel.NumberOfDecimalPlaces); - Assert.AreSame(inputParameters.HydraulicBoundaryLocation, - properties.SelectedHydraulicBoundaryLocation.HydraulicBoundaryLocation); Assert.AreEqual(testLevel, properties.AssessmentLevel, properties.AssessmentLevel.GetAccuracy()); + Assert.IsNull(properties.SelectedHydraulicBoundaryLocation); mocks.VerifyAll(); } @@ -880,6 +879,7 @@ // Then Assert.AreEqual(2, properties.AssessmentLevel.NumberOfDecimalPlaces); + Assert.AreSame(hydraulicBoundaryLocation, properties.SelectedHydraulicBoundaryLocation.HydraulicBoundaryLocation); Assert.AreEqual(testLevel, properties.AssessmentLevel, properties.AssessmentLevel.GetAccuracy()); mocks.VerifyAll();