示例#1
0
        public void IsOverlappingTest( int min1, int max1, int min2, int max2, bool expectedResult )
        {
            IntRange range1 = new IntRange( min1, max1 );
            IntRange range2 = new IntRange( min2, max2 );

            Assert.AreEqual( expectedResult, range1.IsOverlapping( range2 ) );
        }
示例#2
0
        public void IsOverlappingTest(int min1, int max1, int min2, int max2, bool expectedResult)
        {
            IntRange range1 = new IntRange(min1, max1);
            IntRange range2 = new IntRange(min2, max2);

            Assert.AreEqual <bool>(expectedResult, range1.IsOverlapping(range2));
        }