@@ -3,23 +3,23 @@ namespace RelogicLabs.JsonSchema.Tests.Positive;
33[ TestClass ]
44public class DateTimeTests
55{
6-
6+
77 [ TestMethod ]
88 public void When_DataTypeDate_ValidTrue ( )
99 {
1010 var schema = "#date" ;
1111 var json = "\" 2023-09-01\" " ;
1212 JsonAssert . IsValid ( schema , json ) ;
1313 }
14-
14+
1515 [ TestMethod ]
1616 public void When_DataTypeTime_ValidTrue ( )
1717 {
1818 var schema = "#time" ;
1919 var json = "\" 2023-09-01T14:35:10.123+06:00\" " ;
2020 JsonAssert . IsValid ( schema , json ) ;
2121 }
22-
22+
2323 [ TestMethod ]
2424 public void When_DataTypeDateInObject_ValidTrue ( )
2525 {
@@ -41,7 +41,7 @@ public void When_DataTypeDateInObject_ValidTrue()
4141 """ ;
4242 JsonAssert . IsValid ( schema , json ) ;
4343 }
44-
44+
4545 [ TestMethod ]
4646 public void When_DataTypeTimeInObject_ValidTrue ( )
4747 {
@@ -56,14 +56,14 @@ public void When_DataTypeTimeInObject_ValidTrue()
5656 var json =
5757 """
5858 {
59- "key1": "1950-12-31T11:40:10.000 +06:30",
60- "key2": "0001-01-01T00:00:00.000 +00:00",
61- "key3": "1600-02-29T23:59:59.999Z "
59+ "key1": "1950-12-31T11:40:10.333 +06:30",
60+ "key2": "0001-01-01T00:00:00.0 +00:00",
61+ "key3": "1600-02-29T23:59:59.99999Z "
6262 }
6363 """ ;
6464 JsonAssert . IsValid ( schema , json ) ;
6565 }
66-
66+
6767 [ TestMethod ]
6868 public void When_DataTypeDateInArray_ValidTrue ( )
6969 {
@@ -77,7 +77,7 @@ public void When_DataTypeDateInArray_ValidTrue()
7777 """ ;
7878 JsonAssert . IsValid ( schema , json ) ;
7979 }
80-
80+
8181 [ TestMethod ]
8282 public void When_DataTypeTimeInArray_ValidTrue ( )
8383 {
@@ -87,11 +87,11 @@ public void When_DataTypeTimeInArray_ValidTrue()
8787 """ ;
8888 var json =
8989 """
90- ["0001-01-01T00:00:00.000Z ", "9999-12-31T23:59:59.999 +12:59"]
90+ ["0001-01-01T00:00:00.0Z ", "9999-12-31T23:59:59.999999 +12:59"]
9191 """ ;
9292 JsonAssert . IsValid ( schema , json ) ;
9393 }
94-
94+
9595 [ TestMethod ]
9696 public void When_NestedDataTypeDateInArray_ValidTrue ( )
9797 {
@@ -105,7 +105,7 @@ public void When_NestedDataTypeDateInArray_ValidTrue()
105105 """ ;
106106 JsonAssert . IsValid ( schema , json ) ;
107107 }
108-
108+
109109 [ TestMethod ]
110110 public void When_NestedDataTypeTimeInArray_ValidTrue ( )
111111 {
@@ -119,7 +119,7 @@ public void When_NestedDataTypeTimeInArray_ValidTrue()
119119 """ ;
120120 JsonAssert . IsValid ( schema , json ) ;
121121 }
122-
122+
123123 [ TestMethod ]
124124 public void When_NestedDataTypeDateInObject_ValidTrue ( )
125125 {
@@ -136,7 +136,7 @@ public void When_NestedDataTypeDateInObject_ValidTrue()
136136 """ ;
137137 JsonAssert . IsValid ( schema , json ) ;
138138 }
139-
139+
140140 [ TestMethod ]
141141 public void When_NestedDataTypeTimeInObject_ValidTrue ( )
142142 {
@@ -153,7 +153,7 @@ public void When_NestedDataTypeTimeInObject_ValidTrue()
153153 """ ;
154154 JsonAssert . IsValid ( schema , json ) ;
155155 }
156-
156+
157157 [ TestMethod ]
158158 public void When_DateFunctionWithYearMonthDay1InObject_ValidTrue ( )
159159 {
@@ -187,7 +187,7 @@ public void When_DateFunctionWithYearMonthDay1InObject_ValidTrue()
187187 """ ;
188188 JsonAssert . IsValid ( schema , json ) ;
189189 }
190-
190+
191191 [ TestMethod ]
192192 public void When_DateFunctionWithYearMonthDay2InObject_ValidTrue ( )
193193 {
@@ -217,7 +217,7 @@ public void When_DateFunctionWithYearMonthDay2InObject_ValidTrue()
217217 """ ;
218218 JsonAssert . IsValid ( schema , json ) ;
219219 }
220-
220+
221221 [ TestMethod ]
222222 public void When_TimeFunctionWithHourMinuteSecondInObject_ValidTrue ( )
223223 {
@@ -249,7 +249,7 @@ public void When_TimeFunctionWithHourMinuteSecondInObject_ValidTrue()
249249 """ ;
250250 JsonAssert . IsValid ( schema , json ) ;
251251 }
252-
252+
253253 [ TestMethod ]
254254 public void When_TimeFunctionWithUtcOffsetInObject_ValidTrue ( )
255255 {
@@ -275,7 +275,7 @@ public void When_TimeFunctionWithUtcOffsetInObject_ValidTrue()
275275 """ ;
276276 JsonAssert . IsValid ( schema , json ) ;
277277 }
278-
278+
279279 [ TestMethod ]
280280 public void When_DateFunctionWithPartialDateInObject_ValidTrue ( )
281281 {
@@ -301,7 +301,7 @@ public void When_DateFunctionWithPartialDateInObject_ValidTrue()
301301 """ ;
302302 JsonAssert . IsValid ( schema , json ) ;
303303 }
304-
304+
305305 [ TestMethod ]
306306 public void When_TimeFunctionWithPartialTimeInObject_ValidTrue ( )
307307 {
@@ -327,7 +327,7 @@ public void When_TimeFunctionWithPartialTimeInObject_ValidTrue()
327327 """ ;
328328 JsonAssert . IsValid ( schema , json ) ;
329329 }
330-
330+
331331 [ TestMethod ]
332332 public void When_NestedDateFunctionInArray_ValidTrue ( )
333333 {
@@ -345,7 +345,7 @@ public void When_NestedDateFunctionInArray_ValidTrue()
345345 """ ;
346346 JsonAssert . IsValid ( schema , json ) ;
347347 }
348-
348+
349349 [ TestMethod ]
350350 public void When_NestedDateFunctionInObject_ValidTrue ( )
351351 {
@@ -363,7 +363,7 @@ public void When_NestedDateFunctionInObject_ValidTrue()
363363 """ ;
364364 JsonAssert . IsValid ( schema , json ) ;
365365 }
366-
366+
367367 [ TestMethod ]
368368 public void When_NestedTimeFunctionInArray_ValidTrue ( )
369369 {
@@ -381,7 +381,7 @@ public void When_NestedTimeFunctionInArray_ValidTrue()
381381 """ ;
382382 JsonAssert . IsValid ( schema , json ) ;
383383 }
384-
384+
385385 [ TestMethod ]
386386 public void When_NestedTimeFunctionInObject_ValidTrue ( )
387387 {
0 commit comments