Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.TestUtil/MacroStabilityInwardsOutputViewChartDataAssert.cs
===================================================================
diff -u -r5d98c3072517f99bfc6f05a363ea5cf4d6025bd8 -r6168b610057e59ea1ae81d7474ec799a494297bd
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.TestUtil/MacroStabilityInwardsOutputViewChartDataAssert.cs (.../MacroStabilityInwardsOutputViewChartDataAssert.cs) (revision 5d98c3072517f99bfc6f05a363ea5cf4d6025bd8)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.TestUtil/MacroStabilityInwardsOutputViewChartDataAssert.cs (.../MacroStabilityInwardsOutputViewChartDataAssert.cs) (revision 6168b610057e59ea1ae81d7474ec799a494297bd)
@@ -192,7 +192,8 @@
}
///
- /// Asserts whether corresponds to .
+ /// Asserts whether corresponds to
+ /// and .
///
/// The point to use for the start of the line
/// The circle to use for the end of the line.
@@ -240,17 +241,9 @@
/// does not correspond to .
private static void AssertSlipPlaneChartData(MacroStabilityInwardsSlidingCurve original, ChartLineData actual)
{
- List expectedPoints;
- if (original.Slices.Any())
- {
- expectedPoints = original.Slices.Select(slice => slice.BottomLeftPoint).OrderBy(x => x.X).ToList();
- expectedPoints.Add(original.Slices.Last().BottomRightPoint);
- }
- else
- {
- expectedPoints = new List();
- }
-
+ CollectionAssert.IsNotEmpty(original.Slices);
+ List expectedPoints = original.Slices.Select(slice => slice.BottomLeftPoint).OrderBy(x => x.X).ToList();
+ expectedPoints.Add(original.Slices.Last().BottomRightPoint);
CollectionAssert.AreEqual(expectedPoints, actual.Points);
}