-
Notifications
You must be signed in to change notification settings - Fork 4
Gendarme.Rules.NUnit.TestMethodsMustBePublicRule(2.10)
Sebastien Pouliot edited this page Jan 22, 2011
·
2 revisions
Assembly: Gendarme.Rules.NUnit
Version: 2.10
Test method (a method, marked with either TestAttribute, TestCaseAttribute or TestCaseSourceAttribute) is not public. Most NUnit test runners won't execute non-public unit tests.
Bad example:
[Test]
private void TestMethod ()
{
Assert.AreEqual (10, 20);
}
Good example:
public void TestMethod ()
{
Assert.AreEqual (10, 20);
}
Note that this page was autogenerated (3/17/2011 9:31:58 PM) based on the xmldoc
comments inside the rules source code and cannot be edited from this wiki.
Please report any documentation errors, typos or suggestions to the
Gendarme Mailing List. Thanks!