Esempio n. 1
0
        public void TestIsCloseToPoint()
        {
            PointMock point = new PointMock();

            _rectangle.IsCloseToPoint(point, TestDefinitions.DUMP_DOUBLE);
            Assert.IsTrue(point.IsCalledIsInclusiveInRegion);
        }
Esempio n. 2
0
        public void TestIsIncludingPoint()
        {
            Assert.ThrowsException <ArgumentNullException>(() => _rectangle.IsIncludingPoint(null));
            PointMock point = new PointMock();

            _rectangle.IsIncludingPoint(point);
            Assert.IsTrue(point.IsCalledIsInclusiveInRegion);
        }