Ejemplo n.º 1
0
 public void MemberShouldBeStatic(string aspnetCoreVersion, string aspnetVersion) =>
 Verifier.VerifyAnalyzer(@"TestCases\MemberShouldBeStatic.cs",
                         new MemberShouldBeStatic(),
                         additionalReferences: NuGetMetadataReference.MicrosoftAspNetCoreMvcWebApiCompatShim(aspnetCoreVersion)
                         .Concat(NuGetMetadataReference.MicrosoftAspNetMvc(aspnetVersion))
                         .Concat(NuGetMetadataReference.MicrosoftAspNetCoreMvcCore(aspnetCoreVersion))
                         .Concat(NuGetMetadataReference.MicrosoftAspNetCoreMvcViewFeatures(aspnetCoreVersion))
                         .Concat(NuGetMetadataReference.MicrosoftAspNetCoreRoutingAbstractions(aspnetCoreVersion))
                         .ToImmutableArray());