public void ShouldGetOneProblemWithClientCertificateValidationModePeerOrChainTrustRuleViolation()
        {
            CertificateValidationMode rule = new CertificateValidationMode();
            Method callee = Method.GetMethod(typeof(X509ClientCertificateAuthentication).GetMethod("set_CertificateValidationMode"));
            ExpressionList arguments = new ExpressionList(new Variable(NodeType.VariableDeclaration));
            rule.VisitCall(
                null, null,
                callee,
                arguments,
                false, new MockProgramContext(),
                new MockStateBeforeInstruction((int)X509CertificateValidationMode.PeerOrChainTrust), null);

            Assert.IsNotNull(rule.Problems);
            Assert.AreEqual(1, rule.Problems.Count);
        }
        public void ShouldGetOneProblemWithClientCertificateValidationModePeerOrChainTrustRuleViolation()
        {
            CertificateValidationMode rule = new CertificateValidationMode();
            Method         callee          = Method.GetMethod(typeof(X509ClientCertificateAuthentication).GetMethod("set_CertificateValidationMode"));
            ExpressionList arguments       = new ExpressionList(new Variable(NodeType.VariableDeclaration));

            rule.VisitCall(
                null, null,
                callee,
                arguments,
                false, new MockProgramContext(),
                new MockStateBeforeInstruction((int)X509CertificateValidationMode.PeerOrChainTrust), null);

            Assert.IsNotNull(rule.Problems);
            Assert.AreEqual(1, rule.Problems.Count);
        }