Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsSlicesTableTest.cs =================================================================== diff -u -r365f33fe0130eac94cacb979165488d9ae124f3c -r7b8a021f38d77546b7c3318f5f0dedda63168f91 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsSlicesTableTest.cs (.../MacroStabilityInwardsSlicesTableTest.cs) (revision 365f33fe0130eac94cacb979165488d9ae124f3c) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsSlicesTableTest.cs (.../MacroStabilityInwardsSlicesTableTest.cs) (revision 7b8a021f38d77546b7c3318f5f0dedda63168f91) @@ -201,10 +201,6 @@ MacroStabilityInwardsSliceTestFactory.CreateSlice(), MacroStabilityInwardsSliceTestFactory.CreateSlice() }; - table.SetData(new[] - { - MacroStabilityInwardsSliceTestFactory.CreateSlice() - }); // Call table.SetData(slices); @@ -240,12 +236,12 @@ arcLength.GetAccuracy()); var bottomAngle = (RoundedDouble) rowCells[bottomAngleColumnIndex].Value; - Assert.AreEqual(GetAngleBetween(slice.BottomRightPoint, slice.BottomLeftPoint), + Assert.AreEqual(Math2D.GetAngleBetween(slice.BottomLeftPoint, slice.BottomRightPoint), bottomAngle, bottomAngle.GetAccuracy()); var topAngle = (RoundedDouble) rowCells[topAngleColumnIndex].Value; - Assert.AreEqual(GetAngleBetween(slice.TopRightPoint, slice.TopLeftPoint), + Assert.AreEqual(Math2D.GetAngleBetween(slice.TopLeftPoint, slice.TopRightPoint), topAngle, topAngle.GetAccuracy()); @@ -336,11 +332,5 @@ } } } - - private static double GetAngleBetween(Point2D pointA, Point2D pointB) - { - return Math.Atan2(pointA.Y - pointB.Y, - pointA.X - pointB.X) * (180 / Math.PI); - } } } \ No newline at end of file