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