예제 #1
0
        public void TestNullStringEncodeDecode2()
        {
            var objectDataOutput = _serializationService.CreateObjectDataOutput(256);

            objectDataOutput.WriteString(null);
            var bytes           = objectDataOutput.ToByteArray();
            var objectDataInput = _serializationService.CreateObjectDataInput(bytes);
            var decodedStr      = objectDataInput.ReadString();

            Assert.IsNull(decodedStr);
        }