Index: Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/SerializableFailureMechanismSectionCollectionTest.cs =================================================================== diff -u -r2f2055ad087e60f1c66914d69df623279b14bd95 -r36b9c04c7edcc5527fde3c6f2134d14969ee8e4f --- Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/SerializableFailureMechanismSectionCollectionTest.cs (.../SerializableFailureMechanismSectionCollectionTest.cs) (revision 2f2055ad087e60f1c66914d69df623279b14bd95) +++ Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.IO.Test/Model/SerializableFailureMechanismSectionCollectionTest.cs (.../SerializableFailureMechanismSectionCollectionTest.cs) (revision 36b9c04c7edcc5527fde3c6f2134d14969ee8e4f) @@ -55,20 +55,8 @@ } [Test] - public void ConstructorWithFailureMechanism_IdNull_ThrowsArgumentNullException() - { - // Call - TestDelegate call = () => new SerializableFailureMechanismSectionCollection(null, - new SerializableFailureMechanism()); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("id", exception.ParamName); - } - - [Test] [TestCaseSource(typeof(InvalidIdTestHelper), nameof(InvalidIdTestHelper.InvalidIdCases))] - public void ConstructorWithFailureMechanism_InvalidId_ThrowsArgumentNullException(string invalidId) + public void ConstructorWithFailureMechanism_InvalidId_ThrowsArgumentException(string invalidId) { // Call TestDelegate call = () => new SerializableFailureMechanismSectionCollection(invalidId, @@ -115,20 +103,8 @@ } [Test] - public void ConstructorWithTotalAssemblyResult_IdNull_ThrowsArgumentNullException() - { - // Call - TestDelegate call = () => new SerializableFailureMechanismSectionCollection(null, - new SerializableTotalAssemblyResult()); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("id", exception.ParamName); - } - - [Test] [TestCaseSource(typeof(InvalidIdTestHelper), nameof(InvalidIdTestHelper.InvalidIdCases))] - public void ConstructorWithTotalAssemblyResult_InvalidId_ThrowsArgumentNullException(string invalidId) + public void ConstructorWithTotalAssemblyResult_InvalidId_ThrowsArgumentException(string invalidId) { // Call TestDelegate call = () => new SerializableFailureMechanismSectionCollection(invalidId,