Skip to content

Commit 905f1af

Browse files
authored
Update mstest0013.md (#42007)
1 parent a07cdde commit 905f1af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/core/testing/mstest-analyzers/mstest0013.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ Methods marked with `[AssemblyCleanup]` should follow the following layout to be
4040
- it should not take any parameter
4141
- return type should be `void`, `Task` or `ValueTask`
4242

43-
[!INCLUDE [test-class-rules](includes/test-class-rules.md)]
43+
The type declaring these methods should also respect the following rules:
4444

45+
- The type should be a class.
46+
- The class should be public or internal (if the test project is using the [DiscoverInternals] attribute).
47+
- The class shouldn't be static.
48+
- The class should be marked with [TestClass] (or a derived attribute)
4549
- the class should not be generic
4650

4751
## How to fix violations

0 commit comments

Comments
 (0)