Ejemplo n.º 1
0
        public void ReadSInt16_1()
        {
            var encoder = new ClassicDecoder(StringToBuffer("02-00-01-00"));

            Assert.AreEqual(1, encoder.ReadSInt16());
        }
Ejemplo n.º 2
0
        public void ReadSInt16_Minus1()
        {
            var encoder = new ClassicDecoder(StringToBuffer("02-00-FF-FF"));

            Assert.AreEqual(-1, encoder.ReadSInt16());
        }