System.Drawing.PrimitivesTest.RectangleFTests.ToStringTest C# (CSharp) Method

ToStringTest() private method

private ToStringTest ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void
        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());
        }
    }