コード例 #1
0
ファイル: PointTest.cs プロジェクト: CHiiLD/net-toolkit
        public void TestWPFPointInRect()
        {
            Assert.IsTrue(wrect.IsPointInRect(wp1), "Point not in rect!");
            Assert.IsFalse(wrect.IsPointInRect(wp2), "Point in rect!");
            Assert.IsFalse(wrect.IsPointInRect(wp1, wp2), "Point in rect!");
            Assert.IsFalse(wrect.IsPointInRect(wp2, wp1), "Point in rect!");

            Assert.IsTrue(wp1.IsPointInRect(wrect), "Point not in rect!");
            Assert.IsFalse(wp2.IsPointInRect(wrect), "Point in rect!");
        }