示例#1
0
        public void Can_replace_default_string_stream_serializer()
        {
            var custom = new CustomStringSerializer();

            SerializerRepository.RegisterStreamSerializer(custom);
            Assert.AreEqual(custom, SerializerRepository.GetStreamSerializer <string>());
        }
示例#2
0
        public void Can_replace_default_string_bytearray_serializer()
        {
            var custom = new CustomStringSerializer();

            SerializerRepository.RegisterByteArraySerializer(custom);
            Assert.AreEqual(custom, SerializerRepository.GetByteArraySerializer <string>());
        }