Example #1
0
 public InstructionReader(ITokenResolver tokens, ByteConverter stream)
 {
     this.tokens = tokens;
     this.stream = stream;
 }
Example #2
0
 public void Should_throw_OutOfRangeException_if_insufficent_bytes_to_ReadInt32()
 {
     var converter = new ByteConverter(new byte[] { 1, 2, 3 }, 0);
     Expect.Exception<InvalidOperationException>(() => converter.ReadInt32());
 }