Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/AssessmentSectionStubTest.cs =================================================================== diff -u -rc69a4b516440eba03c8f37a0a543a15fa142a8e6 -r7e64ee0d8b9838969c18df00e56636b2a463e44c --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/AssessmentSectionStubTest.cs (.../AssessmentSectionStubTest.cs) (revision c69a4b516440eba03c8f37a0a543a15fa142a8e6) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/AssessmentSectionStubTest.cs (.../AssessmentSectionStubTest.cs) (revision 7e64ee0d8b9838969c18df00e56636b2a463e44c) @@ -92,7 +92,8 @@ Assert.IsNull(assessmentSection.Name); Assert.IsNull(assessmentSection.Comments); Assert.AreEqual(0, Convert.ToInt32(assessmentSection.Composition)); - Assert.IsNull(assessmentSection.ReferenceLine); + Assert.IsNotNull(assessmentSection.ReferenceLine); + CollectionAssert.IsEmpty(assessmentSection.ReferenceLine.Points); Assert.IsNotNull(assessmentSection.BackgroundData); Assert.AreEqual("Background data", assessmentSection.BackgroundData.Name); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Commands/AssessmentSectionFromFileCommandHandlerTest.cs =================================================================== diff -u -r2a81f01756e227d5ce93717b21b87e8a5cd5fcbb -r7e64ee0d8b9838969c18df00e56636b2a463e44c --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Commands/AssessmentSectionFromFileCommandHandlerTest.cs (.../AssessmentSectionFromFileCommandHandlerTest.cs) (revision 2a81f01756e227d5ce93717b21b87e8a5cd5fcbb) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Commands/AssessmentSectionFromFileCommandHandlerTest.cs (.../AssessmentSectionFromFileCommandHandlerTest.cs) (revision 7e64ee0d8b9838969c18df00e56636b2a463e44c) @@ -449,7 +449,7 @@ Assert.IsNotNull(assessmentSection); AssessmentSection expectedAssessmentSection = TestAssessmentSection1_2(true); - expectedAssessmentSection.ReferenceLine = null; + expectedAssessmentSection.ReferenceLine.SetGeometry(Enumerable.Empty()); AssertAssessmentSection(expectedAssessmentSection, assessmentSection); mockRepository.VerifyAll(); @@ -636,12 +636,6 @@ private static void AssertReferenceLine(ReferenceLine expected, ReferenceLine actual) { - if (expected == null) - { - Assert.IsNull(actual); - return; - } - Assert.IsNotNull(actual); Point2D[] expectedPoints = expected.Points.ToArray(); Point2D[] actualPoints = actual.Points.ToArray();