Esempio n. 1
0
        public void ReadNullableGuid_Random()
        {
            var value   = Guid.NewGuid();
            var encoder = new ClassicDecoder(new Buffer <Byte>(new Byte[] { 17, 0, 1 }.Concat(value.ToByteArray()).ToArray()));

            Assert.AreEqual(value, encoder.ReadNullableGuid());
        }
Esempio n. 2
0
        public void ReadNullableGuid_Null()
        {
            var encoder = new ClassicDecoder(StringToBuffer("01-00-00"));

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