Skip to content

Commit

Permalink
Add basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
axelheer committed Dec 13, 2023
1 parent fc9c6e2 commit 9f66165
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/NeinLinq.EntityFramework.Tests/EntityFrameworkRealTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ namespace NeinLinq.Tests;

public class EntityFrameworkRealTest
{
[Fact]
public void DebugString_ShowsSql()
{
using var context = CreateContext();
var query = context.Models.ToDbInjectable();

var actual = ((RewriteQueryable<Model>)query).DebugString;

Assert.Matches("SELECT", actual);
}

[Fact]
public async Task AsNoTracking_MarksQuery()
{
Expand Down

0 comments on commit 9f66165

Please sign in to comment.