Пример #1
0
        public void TestAdjusted()
        {
            var s = new QRect();

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

            var n = s.Adjusted(50, 100, 150, 200);

            Assert.AreEqual(100, n.X);
            Assert.AreEqual(250, n.Y);
            Assert.AreEqual(600, n.Width);
            Assert.AreEqual(700, n.Height);
        }
Пример #2
0
        public void TestAdjusted()
        {
            var s = new QRect();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            var n = s.Adjusted(50, 100, 150, 200);

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