Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/BreakWaterPropertiesTest.cs =================================================================== diff -u -r88e4b60f9055cf9153fc5c7b618537accfc3f3fa -r61f2445be56feb2180cb0990d8889164c17b79f0 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/BreakWaterPropertiesTest.cs (.../BreakWaterPropertiesTest.cs) (revision 88e4b60f9055cf9153fc5c7b618537accfc3f3fa) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/BreakWaterPropertiesTest.cs (.../BreakWaterPropertiesTest.cs) (revision 61f2445be56feb2180cb0990d8889164c17b79f0) @@ -73,9 +73,9 @@ properties.Data = new GrassCoverErosionInwardsInputContext(inputMock, calculationMock, failureMechanismMock, assessmentSectionMock); // Assert - Assert.IsFalse(properties.BreakWaterPresent); + Assert.IsFalse(properties.UseBreakWater); Assert.AreEqual(BreakWaterType.Caisson, properties.BreakWaterType); - Assert.AreEqual(string.Empty, properties.BreakWaterHeight); + Assert.AreEqual("0", properties.BreakWaterHeight); mockRepository.VerifyAll(); } @@ -92,10 +92,7 @@ var calculationMock = mockRepository.StrictMock(generalInput); mockRepository.ReplayAll(); - var input = new GrassCoverErosionInwardsInput(generalInput) - { - BreakWater = new BreakWater(BreakWaterType.Caisson, 1.1) - }; + var input = new GrassCoverErosionInwardsInput(generalInput); input.Attach(observerMock); var properties = new BreakWaterProperties { @@ -108,7 +105,7 @@ // Call properties.BreakWaterHeight = newBreakWaterHeight.ToString(CultureInfo.InvariantCulture); properties.BreakWaterType = newBreakWaterType; - properties.BreakWaterPresent = false; + properties.UseBreakWater = false; // Assert Assert.IsFalse(input.UseBreakWater); @@ -142,11 +139,11 @@ PropertyDescriptorCollection dynamicProperties = dynamicPropertyBag.GetProperties(); Assert.AreEqual(4, dynamicProperties.Count); - PropertyDescriptor breakWaterPresentProperty = dynamicProperties[0]; - Assert.IsNotNull(breakWaterPresentProperty); - Assert.IsFalse(breakWaterPresentProperty.IsReadOnly); - Assert.AreEqual("Aanwezig", breakWaterPresentProperty.DisplayName); - Assert.AreEqual("Is er een havendam aanwezig?", breakWaterPresentProperty.Description); + PropertyDescriptor useBreakWaterProperty = dynamicProperties[0]; + Assert.IsNotNull(useBreakWaterProperty); + Assert.IsFalse(useBreakWaterProperty.IsReadOnly); + Assert.AreEqual("Aanwezig", useBreakWaterProperty.DisplayName); + Assert.AreEqual("Is er een havendam aanwezig?", useBreakWaterProperty.Description); PropertyDescriptor breakWaterTypeProperty = dynamicProperties[1]; Assert.IsNotNull(breakWaterTypeProperty);