public void Encode_Decode_SmallInt() { for (var i = Int16.MinValue; ; i++) { var encoded = TypeCodec.EncodeShort(4, null, i); var decoded = (short)TypeCodec.DecodeShort(4, null, encoded, null); Assert.AreEqual(i, decoded); if (i == Int16.MaxValue) { break; } } }