You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arguably, one of the biggest advantages of using NUnit 4 is: Proper async/await, you can now await the Asserts. However, it appears that NUnit.Analyzers doesn't have an analyzer or a codefix for that.
[Test]publicasync Task After(){await Assert.ThatAsync(()=> GetFourtyTwoAsync(), Is.EqualTo(42));// the first argument could be simplified to just GetFourtyTwoAsyncawait Assert.ThatAsync(()=> GetFourtyTwoAsync("hello world"), Is.EqualTo(42));}
Personally, I think it'd be neat if we could bundle all NUnit 4-related changes to NUnit4XXX. Thoughts? (It does raise the question of whether we should reserve 5XXX or above as well... 🤷)
The text was updated successfully, but these errors were encountered:
Arguably, one of the biggest advantages of using NUnit 4 is: Proper async/await, you can now await the Asserts. However, it appears that
NUnit.Analyzers
doesn't have an analyzer or a codefix for that.Consider the following sync-over-async tests:
It'd be great if these could be fixed to:
Personally, I think it'd be neat if we could bundle all NUnit 4-related changes to NUnit4XXX. Thoughts? (It does raise the question of whether we should reserve 5XXX or above as well... 🤷)
The text was updated successfully, but these errors were encountered: