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
[TestCase("action(disposable)")][TestCase("action.Invoke(disposable)")]publicvoidLambdaUsageOnInjected(stringdisposeCode){vartestCode=@"namespace RoslynSandbox{ using System; public class Foo { public Foo(IDisposable disposable) { Action<IDisposable> action = x => x.Dispose(); ↓action(disposable); } }}";testCode=testCode.AssertReplace("action(disposable)",disposeCode);AnalyzerAssert.Diagnostics(Analyzer,ExpectedDiagnostic,testCode);}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: