Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Pouliot <sebastien@ximian.com>2008-05-07 04:36:21 +0400
committerSebastien Pouliot <sebastien@ximian.com>2008-05-07 04:36:21 +0400
commite485eaac019dcf2b67f2c02d8db83d267bfda12b (patch)
tree1dfb62f597bf9ac0919fc1f83356e74fea6a6ad5 /gendarme/rules/Gendarme.Rules.Smells/Test
parent11317601b8d27c4efe4a5c6e1ad7cb4c7672e7c9 (diff)
2008-05-06 Sebastien Pouliot <sebastien@ximian.com>
* AvoidLongParameterListsTest.cs: Add test case with a static ctor and a long instance ctor. svn path=/trunk/mono-tools/; revision=102684
Diffstat (limited to 'gendarme/rules/Gendarme.Rules.Smells/Test')
-rw-r--r--gendarme/rules/Gendarme.Rules.Smells/Test/AvoidLongParameterListsTest.cs17
-rw-r--r--gendarme/rules/Gendarme.Rules.Smells/Test/ChangeLog5
2 files changed, 22 insertions, 0 deletions
diff --git a/gendarme/rules/Gendarme.Rules.Smells/Test/AvoidLongParameterListsTest.cs b/gendarme/rules/Gendarme.Rules.Smells/Test/AvoidLongParameterListsTest.cs
index 022e4309..da7417dc 100644
--- a/gendarme/rules/Gendarme.Rules.Smells/Test/AvoidLongParameterListsTest.cs
+++ b/gendarme/rules/Gendarme.Rules.Smells/Test/AvoidLongParameterListsTest.cs
@@ -158,5 +158,22 @@ namespace Test.Rules.Smells {
{
AssertRuleFailure<LongDelegateWrapper.LongDelegate> (1);
}
+
+ class StaticConstructor {
+
+ static StaticConstructor ()
+ {
+ }
+
+ public StaticConstructor (int a, bool b, char c, double d, Enum e, float f)
+ {
+ }
+ }
+
+ [Test]
+ public void StaticConstructorTest ()
+ {
+ AssertRuleFailure<StaticConstructor> (1);
+ }
}
}
diff --git a/gendarme/rules/Gendarme.Rules.Smells/Test/ChangeLog b/gendarme/rules/Gendarme.Rules.Smells/Test/ChangeLog
index 84fe3baf..ff1ad0ce 100644
--- a/gendarme/rules/Gendarme.Rules.Smells/Test/ChangeLog
+++ b/gendarme/rules/Gendarme.Rules.Smells/Test/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-06 Sebastien Pouliot <sebastien@ximian.com>
+
+ * AvoidLongParameterListsTest.cs: Add test case with a static ctor
+ and a long instance ctor.
+
2008-04-26 Nestor Salceda <nestor.salceda@gmail.com>
* AvoidMessageChainsTest.cs: Added tests for check chains in the