コード例 #1
0
        public void ReadNullableFloat_1()
        {
            var encoder = new ClassicDecoder(StringToBuffer("05-00-01-00-00-80-3F"));

            Assert.AreEqual(1, encoder.ReadNullableFloat());
        }
コード例 #2
0
        public void ReadNullableFloat_Null()
        {
            var encoder = new ClassicDecoder(StringToBuffer("01-00-00"));

            Assert.AreEqual(null, encoder.ReadNullableFloat());
        }