Exemple #1
0
        public void TestMoveBottomRight()
        {
            var s = new QRect();

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

            s.MoveBottomRight(new QPoint(600, 600));

            Assert.AreEqual(500, s.Width);
            Assert.AreEqual(600, s.Height);
            Assert.AreEqual(101, s.X);
            Assert.AreEqual(1, s.Y);
        }
Exemple #2
0
        public void TestMoveBottomRight()
        {
            var s = new QRect();
            s.X = 50;
            s.Y = 100;
            s.Width = 500;
            s.Height = 600;

            s.MoveBottomRight(new QPoint(600, 600));

            Assert.AreEqual(500, s.Width);
            Assert.AreEqual(600, s.Height);
            Assert.AreEqual(101, s.X);
            Assert.AreEqual(1, s.Y);
        }