예제 #1
0
 public void LocateInverse()
 {
     Assert.AreEqual(RectLocation.BeforeX | RectLocation.BeforeY, rectI.LocateClosed(new PointI(0, 1)));
     Assert.AreEqual(RectLocation.StartX | RectLocation.StartY, rectI.LocateClosed(new PointI(1, 2)));
     Assert.AreEqual(RectLocation.InsideX | RectLocation.InsideY, rectI.LocateClosed(new PointI(3, 4)));
     Assert.AreEqual(RectLocation.EndX | RectLocation.EndY, rectI.LocateClosed(new PointI(5, 7)));
     Assert.AreEqual(RectLocation.AfterX | RectLocation.AfterY, rectI.LocateClosed(new PointI(6, 8)));
 }