コード例 #1
0
        public void MissingMemberGetsDeserializedToNull()
        {
            string json = "{}";

            POCOType deserializedObject = Deserialize(json, typeof(POCOType)) as POCOType;

            Assert.Null(deserializedObject.s);
        }
コード例 #2
0
        public async Task MissingMemberGetsDeserializedToNull()
        {
            string json = "{}";

            POCOType deserializedObject = (await DeserializeAsync(json, typeof(POCOType))) as POCOType;

            Assert.Null(deserializedObject.s);
        }