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

EqualityTest() private method

private EqualityTest ( float x, float y, float width, float height ) : void
x float
y float
width float
height float
return void
        public void EqualityTest(float x, float y, float width, float height)
        {
            RectangleF rect1 = new RectangleF(x, y, width, height);
            RectangleF rect2 = new RectangleF(width, height, x, y);

            Assert.True(rect1 != rect2);
            Assert.False(rect1 == rect2);
            Assert.False(rect1.Equals(rect2));
        }