예제 #1
0
        public void TestMoveLeft()
        {
            var s = new QRect();

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

            s.MoveLeft(50);

            Assert.AreEqual(500, s.Width);
            Assert.AreEqual(600, s.Height);
            Assert.AreEqual(50, s.X);
            Assert.AreEqual(100, s.Y);
        }
예제 #2
0
파일: QRectTests.cs 프로젝트: nanox/QtSharp
        public void TestMoveLeft()
        {
            var s = new QRect();
            s.X = 50;
            s.Y = 100;
            s.Width = 500;
            s.Height = 600;

            s.MoveLeft(50);

            Assert.AreEqual(500, s.Width);
            Assert.AreEqual(600, s.Height);
            Assert.AreEqual(50, s.X);
            Assert.AreEqual(100, s.Y);
        }