public void ShouldModifyRequestedRange() { MemoryBlock block = new MemoryBlock(1024); block.SetBytes(10, new byte[] { 15, 16 }, 0, 2); Assert.That(block.Get(10), Is.EqualTo(15)); Assert.That(block.Get(11), Is.EqualTo(16)); }
public void ShouldModifyRequestedByte() { MemoryBlock block = new MemoryBlock(1024); block.Set(10, 15); Assert.That(block.Get(10), Is.EqualTo(15)); }