public void Locate() { Assert.AreEqual(RectLocation.BeforeX | RectLocation.BeforeY, rectD.Locate(new PointD(0, 1))); Assert.AreEqual(RectLocation.StartX | RectLocation.StartY, rectD.Locate(new PointD(1, 2))); Assert.AreEqual(RectLocation.InsideX | RectLocation.InsideY, rectD.Locate(new PointD(3, 4))); Assert.AreEqual(RectLocation.EndX | RectLocation.EndY, rectD.Locate(new PointD(5, 7))); Assert.AreEqual(RectLocation.AfterX | RectLocation.AfterY, rectD.Locate(new PointD(6, 8))); Assert.AreEqual(RectLocation.BeforeX | RectLocation.BeforeY, rectF.Locate(new PointF(0, 1))); Assert.AreEqual(RectLocation.StartX | RectLocation.StartY, rectF.Locate(new PointF(1, 2))); Assert.AreEqual(RectLocation.InsideX | RectLocation.InsideY, rectF.Locate(new PointF(3, 4))); Assert.AreEqual(RectLocation.EndX | RectLocation.EndY, rectF.Locate(new PointF(5, 7))); Assert.AreEqual(RectLocation.AfterX | RectLocation.AfterY, rectF.Locate(new PointF(6, 8))); Assert.AreEqual(RectLocation.BeforeX | RectLocation.BeforeY, rectI.Locate(new PointI(0, 1))); Assert.AreEqual(RectLocation.StartX | RectLocation.StartY, rectI.Locate(new PointI(1, 2))); Assert.AreEqual(RectLocation.InsideX | RectLocation.InsideY, rectI.Locate(new PointI(3, 4))); Assert.AreEqual(RectLocation.EndX | RectLocation.EndY, rectI.Locate(new PointI(5 - 1, 7 - 1))); Assert.AreEqual(RectLocation.AfterX | RectLocation.AfterY, rectI.Locate(new PointI(6, 8))); }