예제 #1
0
 public void ReadLittleEndianInt16Test()
 {
     const short Value = 0x1234;
     const short Expected = 0x1234;
     StreamBuffer target = new StreamBuffer(BitConverter.GetBytes(Value)) { Position = 0 };
     short actual = target.ReadLittleEndianInt16();
     Assert.AreEqual(Expected, actual);
 }