Index: Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionTest.cs =================================================================== diff -u -rfed1915e1f165e844339d8cf21479f4639cfe546 -rf432893149ee8f4e74d4c21f082974fb89916150 --- Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionTest.cs (.../AssessmentSectionTest.cs) (revision fed1915e1f165e844339d8cf21479f4639cfe546) +++ Ringtoets/Integration/test/Ringtoets.Integration.Data.Test/AssessmentSectionTest.cs (.../AssessmentSectionTest.cs) (revision f432893149ee8f4e74d4c21f082974fb89916150) @@ -159,15 +159,15 @@ "Constructor_InvalidLowerLimitNorm_ThrowsArgumentOutOfRangeException" })] [SetCulture("nl-NL")] - public void Constructor_InvalidLowerLimitNorm_ThrowsArgumentOutOfRangeException(double newNorm) + public void Constructor_InvalidLowerLimitNorm_ThrowsArgumentOutOfRangeException(double invalidNorm) { // Setup var random = new Random(21); var composition = random.NextEnumValue(); // Call TestDelegate test = () => new AssessmentSection(composition, - newNorm, + invalidNorm, 0.000001); // Assert @@ -183,7 +183,7 @@ "Constructor_InvalidSignalingNorm_ThrowsArgumentOutOfRangeException" })] [SetCulture("nl-NL")] - public void Constructor_InvalidSignalingNorm_ThrowsArgumentOutOfRangeException(double newNorm) + public void Constructor_InvalidSignalingNorm_ThrowsArgumentOutOfRangeException(double invalidNorm) { // Setup var random = new Random(21); @@ -192,7 +192,7 @@ // Call TestDelegate test = () => new AssessmentSection(composition, 0.1, - newNorm); + invalidNorm); // Assert const string expectedMessage = "De waarde van de norm moet in het bereik [0,000001, 0,1] liggen."; @@ -569,6 +569,10 @@ private static IEnumerable GetInvalidNormValues(string name) { + yield return new TestCaseData(double.PositiveInfinity) + .SetName($"{name} positive infinity"); + yield return new TestCaseData(double.NegativeInfinity) + .SetName($"{name} negative infinity"); yield return new TestCaseData(double.MaxValue) .SetName($"{name} maxValue"); yield return new TestCaseData(double.MinValue)