Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/FailureMechanismSectionsPropertiesTest.cs =================================================================== diff -u -rc2ab4d0607360bf72be79d5373469d38292aab94 -r7aff630a7c9bb21707781ca2bd0f977d4715891d --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/FailureMechanismSectionsPropertiesTest.cs (.../FailureMechanismSectionsPropertiesTest.cs) (revision c2ab4d0607360bf72be79d5373469d38292aab94) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/FailureMechanismSectionsPropertiesTest.cs (.../FailureMechanismSectionsPropertiesTest.cs) (revision 7aff630a7c9bb21707781ca2bd0f977d4715891d) @@ -19,13 +19,42 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; +using System.Collections.Generic; +using System.Linq; +using Core.Common.Gui.PropertyBag; using NUnit.Framework; +using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.Forms.PropertyClasses; namespace Ringtoets.Common.Forms.Test.PropertyClasses { [TestFixture] public class FailureMechanismSectionsPropertiesTest { - + [Test] + public void Constructor_FailureMechanismSectionsNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new FailureMechanismSectionsProperties(null); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("sections", exception.ParamName); + } + + [Test] + public void Constructor_ExpectedValues() + { + // Setup + IEnumerable sections = Enumerable.Empty(); + + // Call + var properties = new FailureMechanismSectionsProperties(sections); + + // Assert + Assert.IsInstanceOf>>(properties); + Assert.AreSame(sections, properties.Data); + } } } \ No newline at end of file