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

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

            var n = s.Translated(new QPoint(50, 20));

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

            var n = s.Translated(new QPoint(50, 20));

            Assert.AreEqual(100, n.X);
            Assert.AreEqual(100, n.Y);
        }