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

FromLTRBTest() private method

private FromLTRBTest ( float left, float top, float right, float bottom ) : void
left float
top float
right float
bottom float
return void
        public void FromLTRBTest(float left, float top, float right, float bottom)
        {
            RectangleF expected = new RectangleF(left, top, right - left, bottom - top);
            RectangleF actual = RectangleF.FromLTRB(left, top, right, bottom);

            Assert.Equal(expected, actual);
        }