Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/DerivedPipingInputTest.cs =================================================================== diff -u -r2198130ee711ffe22a448aff8b77981b37293050 -rc16357dac6ece1209a66f6e9ee2fd3ff0ae234de --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/DerivedPipingInputTest.cs (.../DerivedPipingInputTest.cs) (revision 2198130ee711ffe22a448aff8b77981b37293050) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/DerivedPipingInputTest.cs (.../DerivedPipingInputTest.cs) (revision c16357dac6ece1209a66f6e9ee2fd3ff0ae234de) @@ -36,6 +36,17 @@ public class DerivedPipingInputTest { [Test] + public void GetPiezometricHeadExit_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetPiezometricHeadExit(null, RoundedDouble.NaN); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetPiezometricHeadExit_ValidInput_SetsParametersForCalculatorAndReturnsNotNaN() { // Setup @@ -78,6 +89,17 @@ } [Test] + public void GetEffectiveThicknessCoverageLayer_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetEffectiveThicknessCoverageLayer(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetEffectiveThicknessCoverageLayer_SoilProfileSingleAquiferAndCoverageUnderSurfaceLine_ReturnsDistributionWithExpectedMean() { // Setup @@ -186,6 +208,17 @@ } [Test] + public void GetThicknessCoverageLayer_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetThicknessCoverageLayer(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetThicknessCoverageLayer_SoilProfileSingleAquiferAndCoverageUnderSurfaceLine_ReturnsDistributionWithExpectedMean() { // Setup @@ -294,6 +327,17 @@ } [Test] + public void GetThicknessAquiferLayer_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetThicknessAquiferLayer(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetThicknessAquiferLayer_SoilProfileSingleAquiferAndCoverageUnderSurfaceLine_ReturnsDistributionWithExpectedMean() { // Setup @@ -485,6 +529,17 @@ } [Test] + public void GetSeepageLength_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetSeepageLength(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetSeepageLength_ValidData_ReturnsDistributionWithExpectedMean() { // Setup @@ -528,6 +583,17 @@ } [Test] + public void GetSaturatedVolumicWeightOfCoverageLayer_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetSaturatedVolumicWeightOfCoverageLayer(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetSaturatedVolumicWeightOfCoverageLayer_SoilProfileNull_ReturnsDistributionWithParametersNaN() { // Setup @@ -818,6 +884,17 @@ } [Test] + public void GetDarcyPermeability_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetDarcyPermeability(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetDarcyPermeability_SoilProfileNull_ReturnsDistributionWithParametersNaN() { // Setup @@ -991,6 +1068,17 @@ } [Test] + public void GetDiameterD70_InputNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => DerivedPipingInput.GetDiameterD70(null); + + // Assert + string paramName = Assert.Throws(call).ParamName; + Assert.AreEqual("input", paramName); + } + + [Test] public void GetDiameterD70_SoilProfileNull_ReturnsDistributionWithParametersNaN() { // Setup