Пример #1
0
 public void StringRange()
 {
     var r0 = new Range<string>("a", "z");
     var r1 = new Range<string>("c", "y");
     Assert.IsTrue( r0.IsContains(r1));
     Assert.IsFalse( r1.IsContains(r0));
 }
Пример #2
0
 public void RangeIsContains()
 {
     var r0 = new Range<int>(1, 100);
     var r1 = new Range<int>(10, 90);
     Assert.IsTrue( r0.IsContains(r1));
     Assert.IsFalse( r1.IsContains(r0));
 }