public void ReturnsNullForNonPrimitiveTypes(Type type)
        {
            ODataSerializerProvider provider = new RawValueSerializerProvider();

            ODataSerializer result = provider.GetODataPayloadSerializer(null, type);

            Assert.Null(result);
        }
Esempio n. 2
0
        public void ReturnsNullForNonPrimitiveTypes(Type type)
        {
            ODataSerializerProvider provider = new RawValueSerializerProvider();

            ODataSerializer result = provider.GetODataPayloadSerializer(null, type);

            Assert.Null(result);
        }
        public void ReturnsAnODataRawValueSerializerForPrimitiveTypes(Type type)
        {
            ODataSerializerProvider provider = new RawValueSerializerProvider();

            ODataSerializer result = provider.GetODataPayloadSerializer(null, type);

            Assert.NotNull(result);
            Assert.IsType<ODataRawValueSerializer>(result);
        }
Esempio n. 4
0
        public void ReturnsAnODataRawValueSerializerForPrimitiveTypes(Type type)
        {
            ODataSerializerProvider provider = new RawValueSerializerProvider();

            ODataSerializer result = provider.GetODataPayloadSerializer(null, type);

            Assert.NotNull(result);
            Assert.IsType <ODataRawValueSerializer>(result);
        }