public void ToStringTest(float x, float y, float width, float height) { var r = new RectangleF(x, y, width, height); Assert.Equal(string.Format(CultureInfo.CurrentCulture, "{{X={0},Y={1},Width={2},Height={3}}}", r.X, r.Y, r.Width, r.Height), r.ToString()); }
public void ToStringTestEmpty(float x, float y, float width, float height) { var r = new RectangleF(x, y, width, height); Assert.Equal("RectangleF [ Empty ]", r.ToString()); }
public void ToStringTest() { var r = new RectangleF(5, 5.1F, 1.3F, 1); Assert.Equal(string.Format(CultureInfo.CurrentCulture, "RectangleF [ X={0}, Y={1}, Width={2}, Height={3} ]", r.X, r.Y, r.Width, r.Height), r.ToString()); }