-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactoring query tests so that they are run both synchronously and asynchronously. #12500
Conversation
// public abstract class AsyncQueryTestBase<TFixture> : IClassFixture<TFixture> | ||
// where TFixture : class, IQueryFixtureBase, new() | ||
// { | ||
// protected AsyncQueryTestBase(TFixture fixture) => Fixture = fixture; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// [](start = 0, length = 3)
Remove commented out code
…synchronously. Tests are now Theories, not Facts and take a single parameter bool isAsync. Some tests got converted from sync to async so this will cause compilation errors for the providers who override those tests (e.g. to verify SQL)
|
||
#region AssertAnyWithPredicate | ||
|
||
protected virtual Task AssertAnyWithPredicate<TItem1, TPredicate>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not stick to overloads mirroring LINQ? I.e AssertAny
instead of AssertAnyWithPredicate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already merged |
Tests are now Theories, not Facts and take a single parameter bool isAsync. Some tests got converted from sync to async so this will cause compilation errors for the providers who override those tests (e.g. to verify SQL)