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
Add a new analyzer similar to VSTHRD101 that would warn when an assertion is done is done in an async delegate call.
Background and Motivation
See example below, based off some customer code base:
internaldelegateCall(stringid);[TestClass]publicclassTestClass{[TestMethod]publicvoidM(){Callc=async s =>Assert.IsNotNull(awaitGetData(s).ConfigureAwait(false));c("nok");}privateTask<object?>GetData(strings){if(s=="nok")returnTask.FromResult<object?>(null);returnTask.FromResult(newobject());}}
Proposed Feature
Add an analyzer
AB#2340735
The text was updated successfully, but these errors were encountered:
Summary
Add a new analyzer similar to
VSTHRD101
that would warn when an assertion is done is done in an async delegate call.Background and Motivation
See example below, based off some customer code base:
Proposed Feature
Add an analyzer
AB#2340735
The text was updated successfully, but these errors were encountered: