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

            SerializerRepository.RegisterStreamSerializer(custom);
            Assert.AreEqual(custom, SerializerRepository.GetStreamSerializer <string>());
        }
Example #2
0
        public void Can_register_custom_stream_serializer()
        {
            var custom = new CustomSerializer();

            SerializerRepository.RegisterStreamSerializer(custom);
            Assert.AreEqual(custom, SerializerRepository.GetStreamSerializer <TypeToSerialize>());
        }