public void TestMoveCenter() { var s = new QRectF(); s.X = 50; s.Y = 100; s.Width = 500; s.Height = 600; s.MoveCenter(new QPointF(600, 600)); Assert.AreEqual(500, s.Width); Assert.AreEqual(600, s.Height); Assert.AreEqual(600 - 250, s.X); Assert.AreEqual(600 - 300, s.Y); }