public void Can_replace_default_string_stream_serializer() { var custom = new CustomStringSerializer(); SerializerRepository.RegisterStreamSerializer(custom); Assert.AreEqual(custom, SerializerRepository.GetStreamSerializer <string>()); }
public void Can_replace_default_string_bytearray_serializer() { var custom = new CustomStringSerializer(); SerializerRepository.RegisterByteArraySerializer(custom); Assert.AreEqual(custom, SerializerRepository.GetByteArraySerializer <string>()); }