Exemplo n.º 1
0
        public void TestInvalidDeserialisationWithTheCustomJsonMarshallerAsCusomMarshaller()
        {
            StringIntMapEntry[] entry1 = new StringIntMapEntry[1];
            entry1[0]       = new StringIntMapEntry();
            entry1[0].key   = "key";
            entry1[0].value = 1;

            String msg = marshaller.MarshallObject(entry1);

            JsonConvert.DeserializeObject <StringIntMapEntry[]>(msg, new CustomJsonMarshaller());
        }
Exemplo n.º 2
0
        public void TestInvalidDeserialisationWithTheCustomJsonMarshallerAsCusomMarshaller()
        {
            StringIntMapEntry[] entry1 = new StringIntMapEntry[1];
            entry1[0] = new StringIntMapEntry();
            entry1[0].key = "key";
            entry1[0].value = 1;

            String msg = marshaller.MarshallObject(entry1);

            JsonConvert.DeserializeObject<StringIntMapEntry[]>(msg, new CustomJsonMarshaller());
        }