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

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

            s.MoveTo(new QPointF(100, 100));

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

            s.MoveTo(new QPointF(100, 100));

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