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

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

            int x1;
            int y1;
            int x2;
            int y2;

            s.GetCoords(&x1, &y1, &x2, &y2);

            Assert.AreEqual(50, x1);
            Assert.AreEqual(150, y1);
            Assert.AreEqual(550, x2);
            Assert.AreEqual(750, y2);
        }
Exemple #2
0
        public void TestGetCoords()
        {
            var s = new QRect();

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

            int x1 = 0;
            int y1 = 0;
            int x2 = 0;
            int y2 = 0;

            s.GetCoords(ref x1, ref y1, ref x2, ref y2);

            Assert.AreEqual(50, x1);
            Assert.AreEqual(150, y1);
            Assert.AreEqual(549, x2);
            Assert.AreEqual(749, y2);
        }
Exemple #3
0
        public void TestGetCoords()
        {
            var s = new QRect();
            s.X = 50;
            s.Y = 150;
            s.Width = 500;
            s.Height = 600;

            int x1 = 0;
            int y1 = 0;
            int x2 = 0;
            int y2 = 0;

            s.GetCoords(ref x1, ref y1, ref x2, ref y2);

            Assert.AreEqual(50, x1);
            Assert.AreEqual(150, y1);
            Assert.AreEqual(549, x2);
            Assert.AreEqual(749, y2);
        }