public void Resolve_TypeName_Is_Null()
        {
            // arrange
            var resolver = new ValueSerializerResolver(ValueSerializers.All);

            // act
            Action action = () => resolver.GetValueSerializer(null);

            // assert
            Assert.Throws <ArgumentNullException>(action);
        }
        public void Resolve_Serializer_Not_Found()
        {
            // arrange
            var resolver = new ValueSerializerResolver(ValueSerializers.All);

            // act
            Action action = () => resolver.GetValueSerializer("Foo");

            // assert
            Assert.Throws <ArgumentException>(action);
        }
        public void Resolve_Serializer()
        {
            // arrange
            var resolver = new ValueSerializerResolver(ValueSerializers.All);

            // act
            IValueSerializer serializer = resolver.GetValueSerializer("String");

            // assert
            Assert.NotNull(serializer);
            Assert.Equal("String", serializer.Name);
        }
        public void Initialize_Input_Serializers()
        {
            // arrange
            var serializer = new InputSerializer();

            // act
            var resolver = new ValueSerializerResolver(
                new IValueSerializer[] { serializer });

            // assert
            Assert.True(serializer.IsInitialized);
        }