From 886a5ca4e6a798adce7470d714117bc7555bdd26 Mon Sep 17 00:00:00 2001 From: pshao25 <97225342+pshao25@users.noreply.github.com> Date: Tue, 15 Aug 2023 16:08:44 +0800 Subject: [PATCH] Update test --- .../AZC0002Tests.cs | 34 +------------------ 1 file changed, 1 insertion(+), 33 deletions(-) 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;