Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
pshao25 committed Aug 15, 2023
1 parent 214cb0e commit 886a5ca
Showing 1 changed file with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,31 +229,9 @@ public virtual Response Get1(string s, RequestContext context)
{
return null;
}
public virtual Task<Response> Get2Async(CancellationToken cancellationToken = default)
{
return null;
}
public virtual Response Get2(CancellationToken cancellationToken = default)
{
return null;
}
public virtual Task<Response> Get2Async(RequestContext context)
{
return null;
}
public virtual Response Get2(RequestContext context)
{
return null;
}
}
}";
await Verifier.CreateAnalyzer(code)
.WithDisabledDiagnostics("AZC0018")
.WithDisabledDiagnostics("AD0001")
.RunAsync();
}

Expand All @@ -268,17 +246,7 @@ public async Task AZC0002NotProducedForMethodsWithRequestContext()
namespace RandomNamespace
{
public class SomeClient
{
public virtual Task<Response> GetAsync(RequestContext context = default)
{
return null;
}
public virtual Response Get(RequestContext context = default)
{
return null;
}
{
public virtual Task<Response> Get2Async(RequestContext context)
{
return null;
Expand Down

0 comments on commit 886a5ca

Please sign in to comment.