Example #1
0
        public void TestAdjust()
        {
            var s = new QRectF();

            s.X      = 50;
            s.Y      = 150;
            s.Width  = 500;
            s.Height = 600;

            s.Adjust(50, 100, 150, 200);

            Assert.AreEqual(100, s.X);
            Assert.AreEqual(250, s.Y);
            Assert.AreEqual(650, s.Width);
            Assert.AreEqual(800, s.Height);
        }
Example #2
0
        public void TestAdjust()
        {
            var s = new QRectF();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            s.Adjust(50, 100, 150, 200);

            Assert.AreEqual(100, s.X);
            Assert.AreEqual(250, s.Y);
            Assert.AreEqual(600, s.Width);
            Assert.AreEqual(700, s.Height);
        }