Skip to content

Commit 3aa836f

Browse files
committed
Fix overflow in Cosmos tests
1 parent 202d207 commit 3aa836f

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

test/EFCore.Specification.Tests/TestModels/JsonQuery/JsonQueryData.cs

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -391,17 +391,20 @@ public static IReadOnlyList<JsonEntityCustomNaming> CreateJsonEntitiesCustomNami
391391
{
392392
var e1_r_r = new JsonOwnedCustomNameBranch
393393
{
394-
Date = new DateTime(2100, 1, 1), Fraction = 10.0,
394+
Date = new DateTime(2100, 1, 1),
395+
Fraction = 10.0,
395396
};
396397

397398
var e1_r_c1 = new JsonOwnedCustomNameBranch
398399
{
399-
Date = new DateTime(2101, 1, 1), Fraction = 10.1,
400+
Date = new DateTime(2101, 1, 1),
401+
Fraction = 10.1,
400402
};
401403

402404
var e1_r_c2 = new JsonOwnedCustomNameBranch
403405
{
404-
Date = new DateTime(2102, 1, 1), Fraction = 10.2,
406+
Date = new DateTime(2102, 1, 1),
407+
Fraction = 10.2,
405408
};
406409

407410
var e1_r = new JsonOwnedCustomNameRoot
@@ -415,17 +418,20 @@ public static IReadOnlyList<JsonEntityCustomNaming> CreateJsonEntitiesCustomNami
415418

416419
var e1_c1_r = new JsonOwnedCustomNameBranch
417420
{
418-
Date = new DateTime(2110, 1, 1), Fraction = 11.0,
421+
Date = new DateTime(2110, 1, 1),
422+
Fraction = 11.0,
419423
};
420424

421425
var e1_c1_c1 = new JsonOwnedCustomNameBranch
422426
{
423-
Date = new DateTime(2111, 1, 1), Fraction = 11.1,
427+
Date = new DateTime(2111, 1, 1),
428+
Fraction = 11.1,
424429
};
425430

426431
var e1_c1_c2 = new JsonOwnedCustomNameBranch
427432
{
428-
Date = new DateTime(2112, 1, 1), Fraction = 11.2,
433+
Date = new DateTime(2112, 1, 1),
434+
Fraction = 11.2,
429435
};
430436

431437
var e1_c1 = new JsonOwnedCustomNameRoot
@@ -439,17 +445,20 @@ public static IReadOnlyList<JsonEntityCustomNaming> CreateJsonEntitiesCustomNami
439445

440446
var e1_c2_r = new JsonOwnedCustomNameBranch
441447
{
442-
Date = new DateTime(2120, 1, 1), Fraction = 12.0,
448+
Date = new DateTime(2120, 1, 1),
449+
Fraction = 12.0,
443450
};
444451

445452
var e1_c2_c1 = new JsonOwnedCustomNameBranch
446453
{
447-
Date = new DateTime(2121, 1, 1), Fraction = 12.1,
454+
Date = new DateTime(2121, 1, 1),
455+
Fraction = 12.1,
448456
};
449457

450458
var e1_c2_c2 = new JsonOwnedCustomNameBranch
451459
{
452-
Date = new DateTime(2122, 1, 1), Fraction = 12.2,
460+
Date = new DateTime(2122, 1, 1),
461+
Fraction = 12.2,
453462
};
454463

455464
var e1_c2 = new JsonOwnedCustomNameRoot
@@ -785,7 +794,7 @@ public static IReadOnlyList<JsonEntityAllTypes> CreateJsonEntitiesAllTypes()
785794
[
786795
ulong.MinValue,
787796
0,
788-
ulong.MaxValue
797+
ulong.MaxValue >> 1
789798
],
790799
TestNullableInt32Collection =
791800
[
@@ -909,7 +918,7 @@ public static IReadOnlyList<JsonEntityAllTypes> CreateJsonEntitiesAllTypes()
909918
[
910919
ulong.MinValue,
911920
0,
912-
ulong.MaxValue
921+
ulong.MaxValue >> 1
913922
],
914923
TestNullableInt32Collection =
915924
[
@@ -1033,7 +1042,7 @@ public static IReadOnlyList<JsonEntityAllTypes> CreateJsonEntitiesAllTypes()
10331042
[
10341043
ulong.MinValue,
10351044
0,
1036-
ulong.MaxValue
1045+
ulong.MaxValue >> 1
10371046
],
10381047
TestNullableInt32Collection =
10391048
[
@@ -1157,7 +1166,7 @@ public static IReadOnlyList<JsonEntityAllTypes> CreateJsonEntitiesAllTypes()
11571166
[
11581167
ulong.MinValue,
11591168
0,
1160-
ulong.MaxValue
1169+
ulong.MaxValue >> 1
11611170
],
11621171
TestNullableInt32Collection =
11631172
[
@@ -1264,7 +1273,7 @@ public static IReadOnlyList<JsonEntityAllTypes> CreateJsonEntitiesAllTypes()
12641273
[
12651274
ulong.MinValue,
12661275
0,
1267-
ulong.MaxValue
1276+
ulong.MaxValue >> 1
12681277
],
12691278
TestNullableInt32Collection =
12701279
[
@@ -1375,7 +1384,7 @@ public static IReadOnlyList<JsonEntityAllTypes> CreateJsonEntitiesAllTypes()
13751384
[
13761385
ulong.MinValue,
13771386
0,
1378-
ulong.MaxValue
1387+
ulong.MaxValue >> 1
13791388
],
13801389
TestNullableInt32Collection =
13811390
[

0 commit comments

Comments
 (0)