Пример #1
0
        public void TestDrawingPointFInRect()
        {
            Assert.IsTrue(frect.IsPointInRect(fp1), "Point not in rect!");
            Assert.IsFalse(frect.IsPointInRect(fp2), "Point in rect!");
            Assert.IsFalse(frect.IsPointInRect(fp1, fp2), "Point in rect!");
            Assert.IsFalse(frect.IsPointInRect(fp2, fp1), "Point in rect!");

            Assert.IsTrue(fp1.IsPointInRect(frect), "Point not in rect!");
            Assert.IsFalse(fp2.IsPointInRect(frect), "Point in rect!");
        }