Index: Ringtoets/Common/test/Ringtoets.Common.Utils.Test/SectionSegmentsHelperTest.cs =================================================================== diff -u -rb2f617ad0d8d6457422a569685763b9718740560 -r38600213ce6ca43c1819c81dd95c8ce786650ac3 --- Ringtoets/Common/test/Ringtoets.Common.Utils.Test/SectionSegmentsHelperTest.cs (.../SectionSegmentsHelperTest.cs) (revision b2f617ad0d8d6457422a569685763b9718740560) +++ Ringtoets/Common/test/Ringtoets.Common.Utils.Test/SectionSegmentsHelperTest.cs (.../SectionSegmentsHelperTest.cs) (revision 38600213ce6ca43c1819c81dd95c8ce786650ac3) @@ -31,16 +31,29 @@ public class SectionSegmentsHelperTest { [Test] - public void MakeSectionSegments_SectionResultsNull_ThrowsArgumentNullException() + public void MakeSectionSegments_SectionsNull_ThrowsArgumentNullException() { // Call TestDelegate test = () => SectionSegmentsHelper.MakeSectionSegments(null); // Assert var exception = Assert.Throws(test); - Assert.AreEqual("sectionResults", exception.ParamName); + Assert.AreEqual("sections", exception.ParamName); } + [Test] + public void MakeSectionSegments_SectionsElementNull_ThrowsArgumentNullException() + { + // Call + TestDelegate test = () => SectionSegmentsHelper.MakeSectionSegments(new FailureMechanismSection[] + { + null + }); + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("section", exception.ParamName); + } + [Test] public void MakeSectionSegments_ValidFailureMechanismSections_ReturnSectionSegmentsFromFailureMechanismSection() {