Пример #1
0
        public void TestEmptyRangesTouches()
        {
            var r1 = IntRange.FromEndpoints(3, 4);
            var r2 = IntRange.FromEndpoints(2, 2);

            Assert.IsFalse(r1.Intersects(r2));
            Assert.IsFalse(r2.Intersects(r1));
            Assert.IsTrue(r2.Touches(r1));
            Assert.IsTrue(r1.Touches(r2));
        }