Esempio n. 1
0
        public void ReadNullableIPAddress_Null()
        {
            var encoder = new ClassicDecoder(StringToBuffer("01-00-00"));

            Assert.AreEqual(null, encoder.ReadNullableIPAddress());
        }
Esempio n. 2
0
        public void ReadNullableIPAddress_Test()
        {
            var encoder = new ClassicDecoder(StringToBuffer("05-00-04-01-02-03-04"));

            Assert.AreEqual("1.2.3.4", encoder.ReadNullableIPAddress().ToString());
        }