Author: spouliot
Date: 2008-02-16 11:36:27 -0500 (Sat, 16 Feb 2008)
New Revision: 95901
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs
Log:
MonoCompatibilityReviewTest.cs: Use the runner, not the rule, to call
CheckMethod (otherwise internal state won't be correct).
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog
===================================================================
--- trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog
2008-02-16 16:27:04 UTC (rev 95900)
+++ trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/ChangeLog
2008-02-16 16:36:27 UTC (rev 95901)
@@ -1,3 +1,8 @@
+2008-02-16 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * MonoCompatibilityReviewTest.cs: Use the runner, not the rule, to
+ call CheckMethod (otherwise internal state won't be correct).
+
2008-02-15 Sebastien Pouliot <[EMAIL PROTECTED]>
* ExitCodeIsLimitedOnUnixTest.cs
Modified:
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs
===================================================================
---
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs
2008-02-16 16:27:04 UTC (rev 95900)
+++
trunk/mono-tools/gendarme/rules/Gendarme.Rules.Portability/Test/MonoCompatibilityReviewTest.cs
2008-02-16 16:36:27 UTC (rev 95901)
@@ -94,6 +94,7 @@
if (method.Name == name)
return method;
}
+ Assert.Fail ("Could not find '{0}'.", name);
return null;
}
@@ -101,7 +102,7 @@
public void TestNotImplemented ()
{
MethodDefinition method = GetTest ("NotImplemented");
- Assert.AreEqual (RuleResult.Failure, rule.CheckMethod
(method));
+ Assert.AreEqual (RuleResult.Failure, runner.CheckMethod
(method));
}
[Test]
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches