public static void AreEqual(Point expected, Point actual, int digits = 2) { if (!PointComparer.Equals(expected, actual, digits)) { throw new AssertionException("Points are not equal\r\n" + $"Expected: {expected.ToString("F" + digits)}\r\v" + $"Actual: {actual.ToString("F" + digits)}"); } }
public bool Equals(Point?x, Point?y) { if (x is null && y is null) { return(true); } if (x is null || y is null) { return(false); } return(PointComparer.Equals(x.Value, y.Value, this.digits)); }