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()); }
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()); }