Esempio n. 1
0
        public void TestSetCoords()
        {
            var s = new QRectF();

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

            s.SetCoords(100, 100, 500, 500);

            Assert.AreEqual(100, s.X);
            Assert.AreEqual(100, s.Y);
            Assert.AreEqual(400, s.Width);
            Assert.AreEqual(400, s.Height);
        }
Esempio n. 2
0
        public void TestSetCoords()
        {
            var s = new QRectF();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            s.SetCoords(100, 100, 500, 500);

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