Skip to content

Commit c53bbac

Browse files
authored
More translation test cleanup (#35341)
Random, DateTime.Parse/new, bitwise operators Continues #34872
1 parent b8ddc5b commit c53bbac

29 files changed

+1296
-1008
lines changed

test/EFCore.Cosmos.FunctionalTests/Query/NorthwindDbFunctionsQueryCosmosTest.cs

-28
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,6 @@ public override async Task Like_identity(bool async)
5252
AssertSql();
5353
}
5454

55-
public override Task Random_return_less_than_1(bool async)
56-
=> Fixture.NoSyncTest(
57-
async, async a =>
58-
{
59-
await base.Random_return_less_than_1(async);
60-
61-
AssertSql(
62-
"""
63-
SELECT VALUE COUNT(1)
64-
FROM root c
65-
WHERE ((c["$type"] = "Order") AND (RAND() < 1.0))
66-
""");
67-
});
68-
69-
public override Task Random_return_greater_than_0(bool async)
70-
=> Fixture.NoSyncTest(
71-
async, async a =>
72-
{
73-
await base.Random_return_greater_than_0(async);
74-
75-
AssertSql(
76-
"""
77-
SELECT VALUE COUNT(1)
78-
FROM root c
79-
WHERE ((c["$type"] = "Order") AND (RAND() >= 0.0))
80-
""");
81-
});
82-
8355
private void AssertSql(params string[] expected)
8456
=> Fixture.TestSqlLoggerFactory.AssertBaseline(expected);
8557

0 commit comments

Comments
 (0)