public void Json_TryDeserializeModel_Fail() { var json = "{INVALID\"TimeRange\":2,\"DayRange\":3,\"CustomDays\":1,\"Title\":\"Test Reminder\"," + "\"Notes\":\"Exercise full range of motion\",\"HowManyTimesADay\":4," + "\"StartDate\":\"2020-02-11T13:43:34.9119383-07:00\",\"EndDate\":\"2020-03-03T13:43:34.9119383-07:00\"," + "\"NextDue\":\"2020-02-18T13:43:34.9119383-07:00\"}"; var ser = new JsonSerializationService(); Reminder resultReminder; var result = ser.TryDeserialize <Reminder>(json, out resultReminder); Assert.IsFalse(result); Assert.IsNull(resultReminder); }