コード例 #1
0
 private static IEnumerable <MetadataReference> GetAdditionalReferences() =>
 MetadataReferenceFacade.GetSystemNetHttp()
 .Concat(MetadataReferenceFacade.GetSystemSecurityCryptography())
 .Concat(NetStandardMetadataReference.Netstandard);
コード例 #2
0
 public void DisposableNotDisposed() =>
 Verifier.VerifyAnalyzer(@"TestCases\DisposableNotDisposed.cs",
                         new DisposableNotDisposed(),
                         ParseOptionsHelper.FromCSharp8,
                         additionalReferences: MetadataReferenceFacade.GetSystemNetHttp());
コード例 #3
0
 private static IEnumerable <MetadataReference> GetAdditionalReferences() =>
 MetadataReferenceFacade.GetSystemNetHttp().Concat(MetadataReferenceFacade.GetSystemComponentModelPrimitives());
コード例 #4
0
 public void DisposableNotDisposed_CSharp9() =>
 Verifier.VerifyAnalyzerFromCSharp9Console(@"TestCases\DisposableNotDisposed.CSharp9.cs",
                                           new DisposableNotDisposed(),
                                           MetadataReferenceFacade.GetSystemNetHttp());