Skip to content

Commit 9dbbdc8

Browse files
committed
Enable Skip_navigation_order_by_single_or_default test
The new translation makes it work also in Sqlite.
1 parent a4f7fc5 commit 9dbbdc8

8 files changed

+0
-46
lines changed

test/EFCore.Sqlite.FunctionalTests/Query/ManyToManyNoTrackingQuerySqliteTest.cs

-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ public class ManyToManyNoTrackingQuerySqliteTest(ManyToManyQuerySqliteFixture fi
1212
{
1313
// Sqlite does not support Apply operations
1414

15-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
16-
=> Assert.Equal(
17-
SqliteStrings.ApplyNotSupported,
18-
(await Assert.ThrowsAsync<InvalidOperationException>(
19-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
20-
2115
public override async Task Filtered_include_skip_navigation_order_by_skip_take_then_include_skip_navigation_where(bool async)
2216
=> Assert.Equal(
2317
SqliteStrings.ApplyNotSupported,

test/EFCore.Sqlite.FunctionalTests/Query/ManyToManyNoTrackingSplitQuerySqliteTest.cs

-5
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,4 @@ public class ManyToManyNoTrackingSplitQuerySqliteTest(ManyToManySplitQuerySqlite
1212
{
1313
// Sqlite does not support Apply operations
1414

15-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
16-
=> Assert.Equal(
17-
SqliteStrings.ApplyNotSupported,
18-
(await Assert.ThrowsAsync<InvalidOperationException>(
19-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
2015
}

test/EFCore.Sqlite.FunctionalTests/Query/ManyToManyQuerySqliteTest.cs

-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ namespace Microsoft.EntityFrameworkCore.Query;
1010
public class ManyToManyQuerySqliteTest(ManyToManyQuerySqliteFixture fixture)
1111
: ManyToManyQueryRelationalTestBase<ManyToManyQuerySqliteFixture>(fixture)
1212
{
13-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
14-
=> Assert.Equal(
15-
SqliteStrings.ApplyNotSupported,
16-
(await Assert.ThrowsAsync<InvalidOperationException>(
17-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
18-
1913
public override async Task Filtered_include_skip_navigation_order_by_skip_take_then_include_skip_navigation_where(bool async)
2014
=> Assert.Equal(
2115
SqliteStrings.ApplyNotSupported,

test/EFCore.Sqlite.FunctionalTests/Query/ManyToManySplitQuerySqliteTest.cs

-5
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,4 @@ namespace Microsoft.EntityFrameworkCore.Query;
1010
public class ManyToManySplitQuerySqliteTest(ManyToManySplitQuerySqliteFixture fixture)
1111
: ManyToManyQueryRelationalTestBase<ManyToManySplitQuerySqliteFixture>(fixture)
1212
{
13-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
14-
=> Assert.Equal(
15-
SqliteStrings.ApplyNotSupported,
16-
(await Assert.ThrowsAsync<InvalidOperationException>(
17-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
1813
}

test/EFCore.Sqlite.FunctionalTests/Query/TPCManyToManyNoTrackingQuerySqliteTest.cs

-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ namespace Microsoft.EntityFrameworkCore.Query;
1010
public class TPCManyToManyNoTrackingQuerySqliteTest(TPCManyToManyQuerySqliteFixture fixture)
1111
: TPCManyToManyNoTrackingQueryRelationalTestBase<TPCManyToManyQuerySqliteFixture>(fixture)
1212
{
13-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
14-
=> Assert.Equal(
15-
SqliteStrings.ApplyNotSupported,
16-
(await Assert.ThrowsAsync<InvalidOperationException>(
17-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
18-
1913
public override async Task Filtered_include_skip_navigation_order_by_skip_take_then_include_skip_navigation_where(bool async)
2014
=> Assert.Equal(
2115
SqliteStrings.ApplyNotSupported,

test/EFCore.Sqlite.FunctionalTests/Query/TPCManyToManyQuerySqliteTest.cs

-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ namespace Microsoft.EntityFrameworkCore.Query;
1010
public class TPCManyToManyQuerySqliteTest(TPCManyToManyQuerySqliteFixture fixture)
1111
: TPCManyToManyQueryRelationalTestBase<TPCManyToManyQuerySqliteFixture>(fixture)
1212
{
13-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
14-
=> Assert.Equal(
15-
SqliteStrings.ApplyNotSupported,
16-
(await Assert.ThrowsAsync<InvalidOperationException>(
17-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
18-
1913
public override async Task Filtered_include_skip_navigation_order_by_skip_take_then_include_skip_navigation_where(bool async)
2014
=> Assert.Equal(
2115
SqliteStrings.ApplyNotSupported,

test/EFCore.Sqlite.FunctionalTests/Query/TPTManyToManyNoTrackingQuerySqliteTest.cs

-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ namespace Microsoft.EntityFrameworkCore.Query;
1010
public class TPTManyToManyNoTrackingQuerySqliteTest(TPTManyToManyQuerySqliteFixture fixture)
1111
: TPTManyToManyNoTrackingQueryRelationalTestBase<TPTManyToManyQuerySqliteFixture>(fixture)
1212
{
13-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
14-
=> Assert.Equal(
15-
SqliteStrings.ApplyNotSupported,
16-
(await Assert.ThrowsAsync<InvalidOperationException>(
17-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
18-
1913
public override async Task Filtered_include_skip_navigation_order_by_skip_take_then_include_skip_navigation_where(bool async)
2014
=> Assert.Equal(
2115
SqliteStrings.ApplyNotSupported,

test/EFCore.Sqlite.FunctionalTests/Query/TPTManyToManyQuerySqliteTest.cs

-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ namespace Microsoft.EntityFrameworkCore.Query;
1010
public class TPTManyToManyQuerySqliteTest(TPTManyToManyQuerySqliteFixture fixture)
1111
: TPTManyToManyQueryRelationalTestBase<TPTManyToManyQuerySqliteFixture>(fixture)
1212
{
13-
public override async Task Skip_navigation_order_by_single_or_default(bool async)
14-
=> Assert.Equal(
15-
SqliteStrings.ApplyNotSupported,
16-
(await Assert.ThrowsAsync<InvalidOperationException>(
17-
() => base.Skip_navigation_order_by_single_or_default(async))).Message);
18-
1913
public override async Task Filtered_include_skip_navigation_order_by_skip_take_then_include_skip_navigation_where(bool async)
2014
=> Assert.Equal(
2115
SqliteStrings.ApplyNotSupported,

0 commit comments

Comments
 (0)