Example #1
0
 public void TestIntersectInverse()
 {
     Range r1 = new Range(1, 4);
     Range r2 = new Range(4, 14);
     Assert.AreEqual(true, r2.intersects(r1));
 }
Example #2
0
 public void TestNoIntersectInverse()
 {
     Range r1 = new Range(1, 3);
     Range r2 = new Range(4, 18);
     Assert.AreEqual(false, r2.intersects(r1));
 }
Example #3
0
 public void TestIntersect()
 {
     Range r1 = new Range(1, 4);
     Range r2 = new Range(4, 13);
     Assert.AreEqual(true, r1.intersects(r2));
 }