public void TestFixMiddlePoint(float expectedX, int expectedY, float x1, float y1, float x2, float y2, float x3, float y3) { var expected = new PointF(expectedX, expectedY); var p1 = new PointF(x1, y1); var p2 = new PointF(x2, y2); var p3 = new PointF(x3, y3); ccl.FixMiddlePoint(p1, p2, p3).Should().Be(expected); }