Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Commands/AssessmentSectionFromFileCommandHandlerTest.cs =================================================================== diff -u -r9a19225babe7672475fb465952d554c756bf2484 -r04b3bf69b0bba824416ecf11bd8e5b0200779736 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Commands/AssessmentSectionFromFileCommandHandlerTest.cs (.../AssessmentSectionFromFileCommandHandlerTest.cs) (revision 9a19225babe7672475fb465952d554c756bf2484) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Commands/AssessmentSectionFromFileCommandHandlerTest.cs (.../AssessmentSectionFromFileCommandHandlerTest.cs) (revision 04b3bf69b0bba824416ecf11bd8e5b0200779736) @@ -443,7 +443,7 @@ Assert.IsNotNull(assessmentSection); AssessmentSection expectedAssessmentSection = TestAssessmentSection1_2(true); - expectedAssessmentSection.ReferenceLine.SetGeometry(new Point2D[0]); + expectedAssessmentSection.ReferenceLine = null; AssertAssessmentSection(expectedAssessmentSection, assessmentSection); mockRepository.VerifyAll(); @@ -602,7 +602,11 @@ private static void AssertReferenceLine(ReferenceLine expected, ReferenceLine actual) { - Assert.IsNotNull(expected); + if (expected == null) + { + Assert.IsNull(actual); + return; + } Assert.IsNotNull(actual); Point2D[] expectedPoints = expected.Points.ToArray(); Point2D[] actualPoints = actual.Points.ToArray();