Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PropertyClasses/HeightStructuresInputContextPropertiesTest.cs =================================================================== diff -u -r42256d0d9e1f697aea24b89175bd378c345e42cc -rf31183a0e18731b0b2ef9487c7f7a09713c4c5ef --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PropertyClasses/HeightStructuresInputContextPropertiesTest.cs (.../HeightStructuresInputContextPropertiesTest.cs) (revision 42256d0d9e1f697aea24b89175bd378c345e42cc) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PropertyClasses/HeightStructuresInputContextPropertiesTest.cs (.../HeightStructuresInputContextPropertiesTest.cs) (revision f31183a0e18731b0b2ef9487c7f7a09713c4c5ef) @@ -239,6 +239,18 @@ }); Assert.AreEqual(17, dynamicProperties.Count); + PropertyDescriptor levelCrestStructureProperty = dynamicProperties[levelCrestStructurePropertyIndex]; + Assert.IsInstanceOf(levelCrestStructureProperty.Converter); + Assert.AreEqual(schematizationCategory, levelCrestStructureProperty.Category); + Assert.AreEqual("Kerende hoogte [m+NAP]", levelCrestStructureProperty.DisplayName); + Assert.AreEqual("Kerende hoogte van het kunstwerk.", levelCrestStructureProperty.Description); + + PropertyDescriptor deviationWaveDirectionProperty = dynamicProperties[deviationWaveDirectionPropertyIndex]; + Assert.IsFalse(deviationWaveDirectionProperty.IsReadOnly); + Assert.AreEqual(hydraulicDataCategory, deviationWaveDirectionProperty.Category); + Assert.AreEqual("Afwijking golfrichting [°]", deviationWaveDirectionProperty.DisplayName); + Assert.AreEqual("Afwijking van de golfrichting.", deviationWaveDirectionProperty.Description); + // Only check the order of the base properties Assert.AreEqual("Kunstwerk", dynamicProperties[structurePropertyIndex].DisplayName); Assert.AreEqual("Locatie (RD) [m]", dynamicProperties[structureLocationPropertyIndex].DisplayName); @@ -256,17 +268,6 @@ Assert.AreEqual("Locatie met hydraulische randvoorwaarden", dynamicProperties[hydraulicBoundaryLocationPropertyIndex].DisplayName); Assert.AreEqual("Stormduur [uur]", dynamicProperties[stormDurationPropertyIndex].DisplayName); - PropertyDescriptor levelCrestStructureProperty = dynamicProperties[levelCrestStructurePropertyIndex]; - Assert.IsInstanceOf(levelCrestStructureProperty.Converter); - Assert.AreEqual(schematizationCategory, levelCrestStructureProperty.Category); - Assert.AreEqual("Kerende hoogte [m+NAP]", levelCrestStructureProperty.DisplayName); - Assert.AreEqual("Kerende hoogte van het kunstwerk.", levelCrestStructureProperty.Description); - - PropertyDescriptor deviationWaveDirectionProperty = dynamicProperties[deviationWaveDirectionPropertyIndex]; - Assert.AreEqual(hydraulicDataCategory, deviationWaveDirectionProperty.Category); - Assert.AreEqual("Afwijking golfrichting [°]", deviationWaveDirectionProperty.DisplayName); - Assert.AreEqual("Afwijking van de golfrichting.", deviationWaveDirectionProperty.Description); - mockRepository.VerifyAll(); }