public void ToHyperrectangleF_test(double x, double y, double w, double h) { Hyperrectangle expected = new Hyperrectangle(x, y, w, h); RectangleF target = new RectangleF((float)x, (float)y, (float)w, (float)h); Hyperrectangle actual = target.ToHyperrectangle(); Assert.AreEqual(expected.ToString("0.##"), actual.ToString("0.##")); }
public void ToHyperrectangle_test(int x, int y, int w, int h) { Hyperrectangle expected = new Hyperrectangle(x, y, w, h); Rectangle target = new Rectangle(x, y, w, h); Hyperrectangle actual = target.ToHyperrectangle(); Assert.AreEqual(expected.ToString("0.##"), actual.ToString("0.##")); }