Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DesignWaterLevelLocationsPropertiesTest.cs =================================================================== diff -u -r88d14838e27c3a6326f43930800068b939989160 -rdaeae61c2082576170144e77499bc74851171a97 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DesignWaterLevelLocationsPropertiesTest.cs (.../DesignWaterLevelLocationsPropertiesTest.cs) (revision 88d14838e27c3a6326f43930800068b939989160) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DesignWaterLevelLocationsPropertiesTest.cs (.../DesignWaterLevelLocationsPropertiesTest.cs) (revision daeae61c2082576170144e77499bc74851171a97) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System.ComponentModel; using System.Linq; using Core.Common.Base; using Core.Common.Base.Data; @@ -35,6 +36,8 @@ [TestFixture] public class DesignWaterLevelLocationsPropertiesTest { + private const int requiredLocationsPropertyIndex = 0; + [Test] public void Constructor_WithHydraulicBoundaryLocationCalculations_ExpectedValues() { @@ -50,6 +53,28 @@ } [Test] + public void Constructor_Always_PropertiesHaveExpectedAttributesValues() + { + // Call + var properties = new DesignWaterLevelLocationsProperties(new ObservableList()); + + // Assert + TypeConverter classTypeConverter = TypeDescriptor.GetConverter(properties, true); + Assert.IsInstanceOf(classTypeConverter); + + PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); + Assert.AreEqual(1, dynamicProperties.Count); + + PropertyDescriptor locationsProperty = dynamicProperties[requiredLocationsPropertyIndex]; + Assert.IsInstanceOf(locationsProperty.Converter); + PropertiesTestHelper.AssertRequiredPropertyDescriptorProperties(locationsProperty, + "Algemeen", + "Locaties", + "Locaties uit de hydraulische randvoorwaardendatabase.", + true); + } + + [Test] public void GetProperties_WithData_ReturnExpectedValues() { // Setup