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

NonDefaultConstructorTest() private method

private NonDefaultConstructorTest ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void
        public void NonDefaultConstructorTest(float x, float y, float width, float height)
        {
            RectangleF rect1 = new RectangleF(x, y, width, height);
            PointF p = new PointF(x, y);
            SizeF s = new SizeF(width, height);
            RectangleF rect2 = new RectangleF(p, s);

            Assert.Equal(rect1, rect2);
        }