MSTEST0016: Test class should have test method
Property | Value |
---|---|
Rule ID | MSTEST0016 |
Title | Test class should have test method |
Category | Design |
Fix is breaking or non-breaking | Non-breaking |
Enabled by default | Yes |
Default severity | Info |
Introduced in version | 3.3.0 |
There is a code fix | No |
Cause
A test class should have a test method.
Rule description
A test class should have at least one test method or be static
and have methods that are attributed with [AssemblyInitialize]
or [AssemblyCleanup]
.
How to fix violations
Ensure that the test class has a test method or is static
and has methods attributed with [AssemblyInitialize]
or [AssemblyCleanup]
.
When to suppress warnings
Do not suppress a warning from this rule. If you ignore this rule, test class will be ignored.
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.