|
| 1 | +# UnitTest |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | +## What failed |
| 6 | + |
| 7 | +### DateTimeFormat with CultureInfo doesn't cover all locale |
| 8 | + |
| 9 | +##### ReadAsDateTimeOffsetIsoDate |
| 10 | + |
| 11 | +``` |
| 12 | +Expected: 08/01/2011 21:25:00 +00:00 |
| 13 | + But was: 08/01/2011 21:25:00 +09:00 |
| 14 | +--- |
| 15 | +at Newtonsoft.Json.Tests.JsonTextReaderTest.ReadAsDateTimeOffsetIsoDate () [0x00085] in .\src\Newtonsoft.Json.Tests\JsonTextReaderTest.cs:2354 |
| 16 | +``` |
| 17 | + |
| 18 | +### DateTimeOffset cannot parse formatted string well |
| 19 | + |
| 20 | +##### SerializeFormattedDateTimeNewZealandCulture |
| 21 | + |
| 22 | +``` |
| 23 | +Expected string length 40 but was 32. Strings differ at index 1. |
| 24 | + Expected: ""Friday, 15 December 2000 10:11:03 p.m."" |
| 25 | + But was: ""15 December 2000 10:11:03 p.m."" |
| 26 | + ------------^ |
| 27 | +--- |
| 28 | +at Newtonsoft.Json.Tests.Converters.IsoDateTimeConverterTests.SerializeFormattedDateTimeNewZealandCulture () [0x00070] in .\src\Newtonsoft.Json.Tests\Converters\IsoDateTimeConverterTests.cs:143 |
| 29 | +``` |
| 30 | + |
| 31 | +##### DateFormatStringWithDateTimeOffset |
| 32 | + |
| 33 | +``` |
| 34 | +Newtonsoft.Json.JsonReaderException : Could not convert string to DateTimeOffset: 2000-pie-Dec-Friday-22. Path '', line 1, position 24. |
| 35 | +--- |
| 36 | +at Newtonsoft.Json.JsonReader.ReadDateTimeOffsetString (System.String s) [0x0007d] in .\src\Newtonsoft.Json\JsonReader.cs:875 |
| 37 | +at Newtonsoft.Json.JsonTextReader.ReadStringValue (ReadType readType) [0x001c7] in .\src\Newtonsoft.Json\JsonTextReader.cs:595 |
| 38 | +at Newtonsoft.Json.JsonTextReader.ReadAsDateTimeOffset () [0x00000] in .\src\Newtonsoft.Json\JsonTextReader.cs:929 |
| 39 | +at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, Boolean hasConverter) [0x00089] in .\src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:2250 |
| 40 | +at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, Boolean checkAdditionalContent) [0x00021] in .\src\Newtonsoft.Json\Serialization\JsonSerializerInternalReader.cs:149 |
| 41 | +``` |
0 commit comments