Example #1
0
 public void ShouldNotContainNearbyAddresses()
 {
     var range = new Range(0x600, 0x100);
     Assert.IsFalse(range.Contains(0x5FF));
     Assert.IsFalse(range.Contains(0x700));
 }
Example #2
0
 public void ShouldContainItself()
 {
     var range = new Range(0x1000, 0x1200);
     Assert.IsTrue(range.Contains(range));
 }
Example #3
0
 public void ShouldContainLastAddress()
 {
     var range = new Range(0x1600, 0xA00);
     Assert.IsTrue(range.Contains(0x1fff));
 }