diff --git a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.Tests/AZC0002Tests.cs b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.Tests/AZC0002Tests.cs index 00727902a5c..24c18c25dbe 100644 --- a/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.Tests/AZC0002Tests.cs +++ b/src/dotnet/Azure.ClientSdk.Analyzers/Azure.ClientSdk.Analyzers.Tests/AZC0002Tests.cs @@ -229,31 +229,9 @@ public virtual Response Get1(string s, RequestContext context) { return null; } - - public virtual Task Get2Async(CancellationToken cancellationToken = default) - { - return null; - } - - public virtual Response Get2(CancellationToken cancellationToken = default) - { - return null; - } - - public virtual Task Get2Async(RequestContext context) - { - return null; - } - - public virtual Response Get2(RequestContext context) - { - return null; - } } }"; await Verifier.CreateAnalyzer(code) - .WithDisabledDiagnostics("AZC0018") - .WithDisabledDiagnostics("AD0001") .RunAsync(); } @@ -268,17 +246,7 @@ public async Task AZC0002NotProducedForMethodsWithRequestContext() namespace RandomNamespace { public class SomeClient - { - public virtual Task GetAsync(RequestContext context = default) - { - return null; - } - - public virtual Response Get(RequestContext context = default) - { - return null; - } - + { public virtual Task Get2Async(RequestContext context) { return null;