public void Int16Test() { MsgPackWriter writer = new MsgPackWriter(Allocator.Temp); writer.WriteInteger(short.MinValue); writer.WriteInteger(short.MaxValue); writer.WriteInteger((short)0); MsgPackReader reader = new MsgPackReader(writer.ToArray(Allocator.Temp)); Assert.That(reader.ReadInt16(), Is.EqualTo(short.MinValue)); Assert.That(reader.ReadInt16(), Is.EqualTo(short.MaxValue)); Assert.That(reader.ReadInt16(), Is.EqualTo(0)); }