public void ShouldGetOneProblemWithClientCertificateRevocationModeRuleViolation() { CertificateRevocationMode rule = new CertificateRevocationMode(); Method callee = Method.GetMethod(typeof(X509ClientCertificateAuthentication).GetMethod("set_RevocationMode")); ExpressionList arguments = new ExpressionList(new Variable(NodeType.VariableDeclaration)); rule.VisitCall( null, null, callee, arguments, false, new MockProgramContext(), new MockStateBeforeInstruction((int)X509RevocationMode.NoCheck), null); Assert.IsNotNull(rule.Problems); Assert.AreEqual(1, rule.Problems.Count); }