Beispiel #1
0
 public void DangerousGetHandleShouldNotBeCalled_CS() =>
 Verifier.VerifyAnalyzer(@"TestCases\DangerousGetHandleShouldNotBeCalled.cs",
                         new csharp.DangerousGetHandleShouldNotBeCalled(),
                         additionalReferences: MetadataReferenceFacade.GetMicrosoftWin32Registry());
Beispiel #2
0
 public void DangerousGetHandleShouldNotBeCalled_CS_CSharp9() =>
 Verifier.VerifyAnalyzerFromCSharp9Console(@"TestCases\DangerousGetHandleShouldNotBeCalled.CSharp9.cs",
                                           new csharp.DangerousGetHandleShouldNotBeCalled(),
                                           MetadataReferenceFacade.GetMicrosoftWin32Registry());