diff options
-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] |