Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/PropertyClasses/DuneLocationsPropertiesTest.cs =================================================================== diff -u -r27d409ea2f4b5e37e14cc057512f37e69b5e77c5 -ree1f859cae82b4321da205d5e1fd339b021f2d7d --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/PropertyClasses/DuneLocationsPropertiesTest.cs (.../DuneLocationsPropertiesTest.cs) (revision 27d409ea2f4b5e37e14cc057512f37e69b5e77c5) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/PropertyClasses/DuneLocationsPropertiesTest.cs (.../DuneLocationsPropertiesTest.cs) (revision ee1f859cae82b4321da205d5e1fd339b021f2d7d) @@ -41,6 +41,17 @@ private const int requiredLocationsPropertyIndex = 0; [Test] + public void Constructor_LocationsNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new DuneLocationsProperties(null, hbl => new DuneLocationCalculation()); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("locations", exception.ParamName); + } + + [Test] public void Constructor_GetCalculationFuncNull_ThrowsArgumentNullException() { // Call @@ -108,6 +119,8 @@ TypeConverter classTypeConverter = TypeDescriptor.GetConverter(properties, true); Assert.IsInstanceOf(classTypeConverter); + Assert.AreSame(locations, properties.Data); + PropertyDescriptorCollection dynamicProperties = PropertiesTestHelper.GetAllVisiblePropertyDescriptors(properties); Assert.AreEqual(1, dynamicProperties.Count);