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

LocationSetTest() private method

private LocationSetTest ( float x, float y ) : void
x float
y float
return void
        public static void LocationSetTest(float x, float y)
        {
            var point = new PointF(x, y);
            var rect = new RectangleF(10, 10, 10, 10);
            rect.Location = point;
            Assert.Equal(point, rect.Location);
            Assert.Equal(point.X, rect.X);
            Assert.Equal(point.Y, rect.Y);
        }