Esempio n. 1
0
        public void TestUnited()
        {
            var s1 = new QRect();
            s1.X = 0;
            s1.Y = 0;
            s1.Width = 500;
            s1.Height = 600;

            var s2 = new QRect();
            s2.X = 100;
            s2.Y = 100;
            s2.Width = 500;
            s2.Height = 600;

            var n = s1.United(s2);

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