From 3da456e639617d965e6bb04914e91c434298c584 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Tue, 21 Jan 2025 12:47:52 +0100 Subject: [PATCH] Update MSTEST0003 to reflect that generic test methods are supported in 3.8+ --- docs/core/testing/mstest-analyzers/mstest0003.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/testing/mstest-analyzers/mstest0003.md b/docs/core/testing/mstest-analyzers/mstest0003.md index 233c66ec4cfea..e67ec0f9e2bf4 100644 --- a/docs/core/testing/mstest-analyzers/mstest0003.md +++ b/docs/core/testing/mstest-analyzers/mstest0003.md @@ -37,7 +37,7 @@ Test methods (methods marked with the `[TestMethod]` attribute) should follow th - they should be `public` (or `internal` if `[assembly: DiscoverInternals]` attribute is set) - they should not be `static` -- they should not be generic +- they should not be generic if using MSTest 3.7 or earlier - they should not be `abstract` - they should return `void` or `Task` - they should not be `async void`