We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a07cdde commit 905f1afCopy full SHA for 905f1af
docs/core/testing/mstest-analyzers/mstest0013.md
@@ -40,8 +40,12 @@ Methods marked with `[AssemblyCleanup]` should follow the following layout to be
40
- it should not take any parameter
41
- return type should be `void`, `Task` or `ValueTask`
42
43
-[!INCLUDE [test-class-rules](includes/test-class-rules.md)]
+The type declaring these methods should also respect the following rules:
44
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)
49
- the class should not be generic
50
51
## How to fix violations
0 commit comments