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

ContainsTest() private method

private ContainsTest ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void
        public void ContainsTest(float x, float y, float width, float height)
        {
            RectangleF rect = new RectangleF(x, y, width, height);
            float X = (x + width) / 2;
            float Y = (y + height) / 2;
            PointF p = new PointF(X, Y);
            RectangleF r = new RectangleF(X, Y, width / 2, height / 2);

            Assert.False(rect.Contains(X, Y));
            Assert.False(rect.Contains(p));
            Assert.False(rect.Contains(r));
        }