Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/MapFeaturesTestHelper.cs =================================================================== diff -u -r21fcf8400284f5279ac15a7a18dcffc88e2b7a53 -r3b44450249cdbaa33110ce4f9ab17a8f5ab39d68 --- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/MapFeaturesTestHelper.cs (.../MapFeaturesTestHelper.cs) (revision 21fcf8400284f5279ac15a7a18dcffc88e2b7a53) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/MapFeaturesTestHelper.cs (.../MapFeaturesTestHelper.cs) (revision 3b44450249cdbaa33110ce4f9ab17a8f5ab39d68) @@ -77,16 +77,15 @@ /// /// Gets the expected result of a hydraulic boundary location calculation. /// - /// The list to get the calculation from. + /// The enumeration to get the calculation from. /// The location to get the calculation for. /// The result when there is output; otherwise. - public static RoundedDouble GetExpectedResult(IEnumerable calculationList, + public static RoundedDouble GetExpectedResult(IEnumerable calculations, HydraulicBoundaryLocation hydraulicBoundaryLocation) { - return calculationList - .Where(calculation => calculation.HydraulicBoundaryLocation.Equals(hydraulicBoundaryLocation)) - .Select(calculation => calculation.Output?.Result ?? RoundedDouble.NaN) - .Single(); + return calculations + .Single(calculation => calculation.HydraulicBoundaryLocation.Equals(hydraulicBoundaryLocation)) + .Output?.Result ?? RoundedDouble.NaN; } } } \ No newline at end of file