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

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

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