Index: Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/ReferenceLineProperties.cs =================================================================== diff -u -r558241ef9493905c11075a1408aa1d209678f5ff -rb16774f200c0d348901cb95bae9a017793e2a57c --- Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/ReferenceLineProperties.cs (.../ReferenceLineProperties.cs) (revision 558241ef9493905c11075a1408aa1d209678f5ff) +++ Ringtoets/Integration/src/Ringtoets.Integration.Forms/PropertyClasses/ReferenceLineProperties.cs (.../ReferenceLineProperties.cs) (revision b16774f200c0d348901cb95bae9a017793e2a57c) @@ -55,7 +55,7 @@ throw new ArgumentNullException(nameof(assessmentSection)); } - Data = assessmentSection; + data = assessmentSection; } [PropertyOrder(lengthPropertyIndex)] Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/ReferenceLinePropertiesTest.cs =================================================================== diff -u -r558241ef9493905c11075a1408aa1d209678f5ff -rb16774f200c0d348901cb95bae9a017793e2a57c --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/ReferenceLinePropertiesTest.cs (.../ReferenceLinePropertiesTest.cs) (revision 558241ef9493905c11075a1408aa1d209678f5ff) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/ReferenceLinePropertiesTest.cs (.../ReferenceLinePropertiesTest.cs) (revision b16774f200c0d348901cb95bae9a017793e2a57c) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using System.Collections.Generic; using System.ComponentModel; using Core.Common.Base.Geometry; using Core.Common.Gui.Converters; @@ -77,7 +76,7 @@ var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); var referenceLine = new ReferenceLine(); - var geometry = new List + var geometry = new[] { new Point2D(random.NextDouble(), random.NextDouble()), new Point2D(random.NextDouble(), random.NextDouble()) Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/PropertyInfos/ReferenceLinePropertyInfoTest.cs =================================================================== diff -u -r558241ef9493905c11075a1408aa1d209678f5ff -rb16774f200c0d348901cb95bae9a017793e2a57c --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/PropertyInfos/ReferenceLinePropertyInfoTest.cs (.../ReferenceLinePropertyInfoTest.cs) (revision 558241ef9493905c11075a1408aa1d209678f5ff) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/PropertyInfos/ReferenceLinePropertyInfoTest.cs (.../ReferenceLinePropertyInfoTest.cs) (revision b16774f200c0d348901cb95bae9a017793e2a57c) @@ -23,9 +23,9 @@ using Core.Common.Gui.Plugin; using Core.Common.Gui.PropertyBag; using NUnit.Framework; +using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; using Ringtoets.Common.Forms.PresentationObjects; -using Ringtoets.Integration.Data; using Ringtoets.Integration.Forms.PropertyClasses; namespace Ringtoets.Integration.Plugin.Test.PropertyInfos @@ -60,10 +60,10 @@ public void CreateInstance_WithContext_ReturnReferenceLineProperties() { // Setup - var assessmentSection = new AssessmentSection(AssessmentSectionComposition.Dike) - { - ReferenceLine = new ReferenceLine() - }; + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + var context = new ReferenceLineContext(assessmentSection); // Call @@ -72,6 +72,7 @@ // Assert Assert.IsInstanceOf(objectProperties); Assert.AreSame(context.WrappedData, objectProperties.Data); + mocks.VerifyAll(); } } } \ No newline at end of file