Example #1
0
        public void LdapConnectionsShouldBeSecure() =>
        Verifier.VerifyAnalyzer(@"TestCases\LdapConnectionShouldBeSecure.cs",
                                new LdapConnectionShouldBeSecure(),
#if NETFRAMEWORK
                                additionalReferences: MetadataReferenceFacade.GetSystemDirectoryServices().Concat(NuGetMetadataReference.NETStandardV2_1_0),
#else
                                additionalReferences: MetadataReferenceFacade.GetSystemDirectoryServices(),
#endif
                                options: ParseOptionsHelper.FromCSharp8);
Example #2
0
 public void LdapConnectionsShouldBeSecure_FromCSharp9() =>
 Verifier.VerifyAnalyzerFromCSharp9Console(@"TestCases\LdapConnectionShouldBeSecure.CSharp9.cs",
                                           new LdapConnectionShouldBeSecure(),
                                           MetadataReferenceFacade.GetSystemDirectoryServices());