public void ReadIntBigEndian () { MessageReader reader = new MessageReader (EndianFlag.Big, new byte[] { 0, 0, 8, 8}); Assert.AreEqual (0x808, reader.ReadInt32 ()); Assert.IsFalse (reader.DataAvailable); }
public void ReadIntLittleEndian () { MessageReader reader = new MessageReader (EndianFlag.Little, new byte[] { 8, 8, 0, 0}); Assert.AreEqual (0x808, reader.ReadInt32 ()); Assert.IsFalse (reader.DataAvailable); }