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); }
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); }