Index: Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/PropertyClasses/WaveConditionsInputContextPropertiesTest.cs =================================================================== diff -u -rb87631c59ae4ab477c9b21eb5443720e417e16b8 -r4e809aa7934b10e3c8218118d96009e7fc854f48 --- Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/PropertyClasses/WaveConditionsInputContextPropertiesTest.cs (.../WaveConditionsInputContextPropertiesTest.cs) (revision b87631c59ae4ab477c9b21eb5443720e417e16b8) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.Forms.Test/PropertyClasses/WaveConditionsInputContextPropertiesTest.cs (.../WaveConditionsInputContextPropertiesTest.cs) (revision 4e809aa7934b10e3c8218118d96009e7fc854f48) @@ -201,7 +201,6 @@ Assert.AreEqual("Test", properties.RevetmentType); Assert.AreSame(hydraulicBoundaryLocation, properties.SelectedHydraulicBoundaryLocation.HydraulicBoundaryLocation); - Assert.AreEqual(TestCategoryType.Category1, properties.CategoryType); Assert.AreEqual(assessmentLevel.Value, properties.AssessmentLevel.Value, properties.AssessmentLevel.GetAccuracy()); Assert.AreSame(foreshoreProfile, properties.ForeshoreProfile); Assert.AreEqual(worldX, properties.WorldReferencePoint.X, 0.5); @@ -416,8 +415,10 @@ [Test] public void CategoryType_Always_InputChangedAndObservablesNotified() { + var categoryType = new Random(21).NextEnumValue(); + SetPropertyAndVerifyNotificationsAndOutputForCalculation( - properties => properties.CategoryType = TestCategoryType.Category2); + properties => properties.CategoryType = categoryType); } [Test] @@ -847,8 +848,6 @@ private class TestWaveConditionsInputContextProperties : WaveConditionsInputContextProperties { - private TestCategoryType type = TestCategoryType.Category1; - public TestWaveConditionsInputContextProperties(TestWaveConditionsInputContext context, Func getNormativeAssessmentLevelFunc, IObservablePropertyChangeHandler handler) @@ -864,19 +863,16 @@ protected override TestCategoryType GetCategoryType() { - return type; + return 0; } - protected override void SetCategoryType(TestCategoryType categoryType) - { - type = categoryType; - } + protected override void SetCategoryType(TestCategoryType categoryType) {} } private enum TestCategoryType { - Category1, - Category2 + Type1, + Type2 } } } \ No newline at end of file