Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructuresFailureMechanismMetaEntityReadExtensionsTest.cs =================================================================== diff -u -r401ea38da560543cd91415c326b9463976b2e80a -rfbe227cf3a6743302f63c1bd3281feda0273192c --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructuresFailureMechanismMetaEntityReadExtensionsTest.cs (.../ClosingStructuresFailureMechanismMetaEntityReadExtensionsTest.cs) (revision 401ea38da560543cd91415c326b9463976b2e80a) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/ClosingStructures/ClosingStructuresFailureMechanismMetaEntityReadExtensionsTest.cs (.../ClosingStructuresFailureMechanismMetaEntityReadExtensionsTest.cs) (revision fbe227cf3a6743302f63c1bd3281feda0273192c) @@ -19,6 +19,7 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. +using System; using Application.Ringtoets.Storage.DbContext; using Application.Ringtoets.Storage.Read.ClosingStructures; using NUnit.Framework; @@ -30,12 +31,23 @@ public class ClosingStructuresFailureMechanismMetaEntityReadExtensionsTest { [Test] + public void ReadClosingStructuresFailureMechanism_EntityNull_ThrowsArgumentNullException() + { + // Call + TestDelegate test = () => ((ClosingStructuresFailureMechanismMetaEntity) null).Read(); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("entity", exception.ParamName); + } + + [Test] public void Read_Always_ReturnGeneralClosingStructuresInput() { // Setup var entity = new ClosingStructuresFailureMechanismMetaEntity { - N2A = 3 + N2A = new Random(39).Next(1, 40) }; // Call