You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/articles/nunit-analyzers/NUnit-Analyzers.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,11 @@ Rules which enforce structural requirements on the test code.
56
56
|[NUnit1031](NUnit1031.md)| The individual arguments provided by a ValuesAttribute must match the type of the corresponding parameter of the method |:white_check_mark:|:exclamation:|:x:|
57
57
|[NUnit1032](NUnit1032.md)| An IDisposable field/property should be Disposed in a TearDown method |:white_check_mark:|:exclamation:|:x:|
58
58
|[NUnit1033](NUnit1033.md)| The Write methods on TestContext will be marked as Obsolete and eventually removed |:white_check_mark:|:warning:|:white_check_mark:|
59
+
|[NUnit1034](NUnit1034.md)| Base TestFixtures should be abstract |:white_check_mark:|:warning:|:white_check_mark:|
60
+
|[NUnit1035](NUnit1035.md)| The 'step' parameter to Range cannot be zero |:white_check_mark:|:exclamation:|:x:|
61
+
|[NUnit1036](NUnit1036.md)| The value for 'from' must be less than 'to' when 'step' is positive |:white_check_mark:|:exclamation:|:x:|
62
+
|[NUnit1037](NUnit1037.md)| The value for 'from' must be greater than 'to' when 'step' is negative |:white_check_mark:|:exclamation:|:x:|
63
+
|[NUnit1038](NUnit1038.md)| The type of the attribute values doesn't match the parameter type |:white_check_mark:|:exclamation:|:x:|
59
64
60
65
## Assertion Rules (NUnit2001 - )
61
66
@@ -107,7 +112,7 @@ Rules which improve assertions in the test code.
107
112
|[NUnit2042](NUnit2042.md)| Comparison constraint on object |:white_check_mark:|:information_source:|:x:|
108
113
|[NUnit2043](NUnit2043.md)| Use ComparisonConstraint for better assertion messages in case of failure |:white_check_mark:|:information_source:|:white_check_mark:|
109
114
|[NUnit2044](NUnit2044.md)| Non-delegate actual parameter |:white_check_mark:|:exclamation:|:white_check_mark:|
110
-
|[NUnit2045](NUnit2045.md)| Use Assert.Multiple |:white_check_mark:|:information_source:|:white_check_mark:|
115
+
|[NUnit2045](NUnit2045.md)| Use Assert.EnterMultipleScope or Assert.Multiple |:white_check_mark:|:information_source:|:white_check_mark:|
111
116
|[NUnit2046](NUnit2046.md)| Use CollectionConstraint for better assertion messages in case of failure |:white_check_mark:|:information_source:|:white_check_mark:|
112
117
|[NUnit2047](NUnit2047.md)| Incompatible types for Within constraint |:white_check_mark:|:warning:|:white_check_mark:|
113
118
|[NUnit2048](NUnit2048.md)| Consider using Assert.That(...) instead of StringAssert(...) |:white_check_mark:|:warning:|:white_check_mark:|
@@ -117,6 +122,8 @@ Rules which improve assertions in the test code.
117
122
|[NUnit2052](NUnit2052.md)| Consider using Assert.That(expr, Is.Negative) instead of ClassicAssert.Negative(expr) |:white_check_mark:|:information_source:|:white_check_mark:|
118
123
|[NUnit2053](NUnit2053.md)| Consider using Assert.That(actual, Is.AssignableFrom(expected)) instead of ClassicAssert.IsAssignableFrom(expected, actual) |:white_check_mark:|:information_source:|:white_check_mark:|
119
124
|[NUnit2054](NUnit2054.md)| Consider using Assert.That(actual, Is.Not.AssignableFrom(expected)) instead of ClassicAssert.IsNotAssignableFrom(expected, actual) |:white_check_mark:|:information_source:|:white_check_mark:|
125
+
|[NUnit2055](NUnit2055.md)| Consider using Is.InstanceOf\<T> constraint instead of an 'is T' expression |:white_check_mark:|:information_source:|:white_check_mark:|
126
+
|[NUnit2056](NUnit2056.md)| Consider using Assert.EnterMultipleScope statement instead of Assert.Multiple/Assert.MultipleAsync |:white_check_mark:|:information_source:|:white_check_mark:|
120
127
121
128
## Suppressor Rules (NUnit3001 - )
122
129
@@ -136,4 +143,5 @@ Rules which help you write concise and readable NUnit test code.
136
143
137
144
| Id | Title |:mag:|:memo:|:bulb:|
138
145
| :-- | :-- | :--: | :--: | :--: |
139
-
|[NUnit4001](NUnit4001.md)| Simplify the Values attribute |:white_check_mark:|:information_source:|:x:|
146
+
|[NUnit4001](NUnit4001.md)| Simplify the Values attribute |:white_check_mark:|:information_source:|:white_check_mark:|
147
+
|[NUnit4002](NUnit4002.md)| Use Specific constraint |:white_check_mark:|:information_source:|:white_check_mark:|
0 commit comments