private static IEnumerable <MetadataReference> GetAdditionalReferences() => MetadataReferenceFacade.GetSystemNetHttp() .Concat(MetadataReferenceFacade.GetSystemSecurityCryptography()) .Concat(NetStandardMetadataReference.Netstandard);
public void DisposableNotDisposed() => Verifier.VerifyAnalyzer(@"TestCases\DisposableNotDisposed.cs", new DisposableNotDisposed(), ParseOptionsHelper.FromCSharp8, additionalReferences: MetadataReferenceFacade.GetSystemNetHttp());
private static IEnumerable <MetadataReference> GetAdditionalReferences() => MetadataReferenceFacade.GetSystemNetHttp().Concat(MetadataReferenceFacade.GetSystemComponentModelPrimitives());
public void DisposableNotDisposed_CSharp9() => Verifier.VerifyAnalyzerFromCSharp9Console(@"TestCases\DisposableNotDisposed.CSharp9.cs", new DisposableNotDisposed(), MetadataReferenceFacade.GetSystemNetHttp());