Ejemplo n.º 1
0
        public void TestDrawingPointInRect()
        {
            Assert.IsTrue(drect.IsPointInRect(dp1), "Point not in rect!");
            Assert.IsFalse(drect.IsPointInRect(dp2), "Point in rect!");
            Assert.IsFalse(drect.IsPointInRect(dp1, dp2), "Point in rect!");
            Assert.IsFalse(drect.IsPointInRect(dp2, dp1), "Point in rect!");

            Assert.IsTrue(dp1.IsPointInRect(drect), "Point not in rect!");
            Assert.IsFalse(dp2.IsPointInRect(drect), "Point in rect!");
        }