diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2008-02-16 19:36:27 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2008-02-16 19:36:27 +0300 |
commit | e8948bd5f410b9fa9385b936580041962baa62b1 (patch) | |
tree | c00cc223d70a97179bcf3e388fc4a5f1cf2582b2 /gendarme/rules | |
parent | b4eeb9407b2ee139b463a5db22b1dad83537f400 (diff) |
MonoCompatibilityReviewTest.cs: Use the runner, not the rule, to call CheckMethod (otherwise internal state won't be correct).
svn path=/trunk/mono-tools/; revision=95901
Diffstat (limited to 'gendarme/rules')
-rw-r--r-- | gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog | 5 | ||||
-rw-r--r-- | gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog b/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog index bebdbcff..42b055c5 100644 --- a/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog +++ b/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog @@ -1,3 +1,8 @@ +2008-02-16 Sebastien Pouliot <sebastien@ximian.com> + + * MonoCompatibilityReviewTest.cs: Use the runner, not the rule, to + call CheckMethod (otherwise internal state won't be correct). + 2008-02-15 Sebastien Pouliot <sebastien@ximian.com> * ExitCodeIsLimitedOnUnixTest.cs diff --git a/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs b/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs index 299cc405..88fc2e59 100644 --- a/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs +++ b/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs @@ -94,6 +94,7 @@ namespace Test.Rules.Portability { if (method.Name == name) return method; } + Assert.Fail ("Could not find '{0}'.", name); return null; } @@ -101,7 +102,7 @@ namespace Test.Rules.Portability { public void TestNotImplemented () { MethodDefinition method = GetTest ("NotImplemented"); - Assert.AreEqual (RuleResult.Failure, rule.CheckMethod (method)); + Assert.AreEqual (RuleResult.Failure, runner.CheckMethod (method)); } [Test] |