public void TestTranslateWithInt() { var s = new QLineF(5.0, 5.0, 10.0, 10.0); s.Translate(5, 5); Assert.AreEqual(10.0, s.X1); Assert.AreEqual(10.0, s.Y1); Assert.AreEqual(15.0, s.X2); Assert.AreEqual(15.0, s.Y2); }
public void TestTranslateWithPoint() { using (var s = new QLineF(5.0, 5.0, 10.0, 10.0)) { s.Translate(new QPointF(5.0, 5.0)); Assert.AreEqual(10.0, s.X1); Assert.AreEqual(10.0, s.Y1); Assert.AreEqual(15.0, s.X2); Assert.AreEqual(15.0, s.Y2); } }