-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
NorthwindAggregateOperatorsQuerySqliteTest.cs
74 lines (62 loc) · 3.58 KB
/
NorthwindAggregateOperatorsQuerySqliteTest.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using Microsoft.EntityFrameworkCore.Sqlite.Internal;
namespace Microsoft.EntityFrameworkCore.Query;
public class NorthwindAggregateOperatorsQuerySqliteTest : NorthwindAggregateOperatorsQueryRelationalTestBase<
NorthwindQuerySqliteFixture<NoopModelCustomizer>>
{
public NorthwindAggregateOperatorsQuerySqliteTest(
NorthwindQuerySqliteFixture<NoopModelCustomizer> fixture,
ITestOutputHelper testOutputHelper)
: base(fixture)
{
ClearLog();
Fixture.TestSqlLoggerFactory.SetTestOutputHelper(testOutputHelper);
}
public override async Task Sum_with_division_on_decimal(bool async)
=> Assert.Equal(
SqliteStrings.AggregateOperationNotSupported("Sum", "decimal"),
(await Assert.ThrowsAsync<NotSupportedException>(
async () => await base.Sum_with_division_on_decimal(async)))
.Message);
public override async Task Sum_with_division_on_decimal_no_significant_digits(bool async)
=> Assert.Equal(
SqliteStrings.AggregateOperationNotSupported("Sum", "decimal"),
(await Assert.ThrowsAsync<NotSupportedException>(
async () => await base.Sum_with_division_on_decimal_no_significant_digits(async)))
.Message);
public override async Task Average_with_division_on_decimal(bool async)
=> Assert.Equal(
SqliteStrings.AggregateOperationNotSupported("Average", "decimal"),
(await Assert.ThrowsAsync<NotSupportedException>(
async () => await base.Average_with_division_on_decimal(async)))
.Message);
public override async Task Average_with_division_on_decimal_no_significant_digits(bool async)
=> Assert.Equal(
SqliteStrings.AggregateOperationNotSupported("Average", "decimal"),
(await Assert.ThrowsAsync<NotSupportedException>(
async () => await base.Average_with_division_on_decimal_no_significant_digits(async)))
.Message);
public override async Task Average_over_max_subquery_is_client_eval(bool async)
=> Assert.Equal(
SqliteStrings.AggregateOperationNotSupported("Average", "decimal"),
(await Assert.ThrowsAsync<NotSupportedException>(
async () => await base.Average_over_max_subquery_is_client_eval(async)))
.Message);
public override async Task Average_over_nested_subquery_is_client_eval(bool async)
=> Assert.Equal(
SqliteStrings.AggregateOperationNotSupported("Average", "decimal"),
(await Assert.ThrowsAsync<NotSupportedException>(
async () => await base.Average_over_nested_subquery_is_client_eval(async)))
.Message);
public override async Task Multiple_collection_navigation_with_FirstOrDefault_chained(bool async)
=> Assert.Equal(
SqliteStrings.ApplyNotSupported,
(await Assert.ThrowsAsync<InvalidOperationException>(
() => base.Multiple_collection_navigation_with_FirstOrDefault_chained(async))).Message);
public override async Task Contains_with_local_anonymous_type_array_closure(bool async)
// Aggregates. Issue #15937.
=> await AssertTranslationFailed(() => base.Contains_with_local_anonymous_type_array_closure(async));
public override async Task Contains_with_local_tuple_array_closure(bool async)
=> await AssertTranslationFailed(() => base.Contains_with_local_tuple_array_closure(async));
}