From 54297398e3c720a9d85d60a1dba0719e8dc57408 Mon Sep 17 00:00:00 2001 From: Enji Eid Date: Fri, 26 Jul 2024 17:02:42 +0200 Subject: [PATCH 1/2] Update mstest0010.md --- docs/core/testing/mstest-analyzers/mstest0010.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/core/testing/mstest-analyzers/mstest0010.md b/docs/core/testing/mstest-analyzers/mstest0010.md index 6c61ce98294bf..48989343f9fc2 100644 --- a/docs/core/testing/mstest-analyzers/mstest0010.md +++ b/docs/core/testing/mstest-analyzers/mstest0010.md @@ -39,6 +39,7 @@ Methods marked with `[ClassInitialize]` should follow the following layout to be - it should not be generic - it should take one parameter of type `TestContext` - return type should be `void`, `Task` or `ValueTask` +- 'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'. [!INCLUDE [test-class-rules](includes/test-class-rules.md)] From 27203d0c37fdad8da6b5cad9d097d781118db343 Mon Sep 17 00:00:00 2001 From: Enji Eid Date: Fri, 26 Jul 2024 17:05:38 +0200 Subject: [PATCH 2/2] Update mstest0010.md --- docs/core/testing/mstest-analyzers/mstest0010.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/testing/mstest-analyzers/mstest0010.md b/docs/core/testing/mstest-analyzers/mstest0010.md index 48989343f9fc2..72b60a1e780f8 100644 --- a/docs/core/testing/mstest-analyzers/mstest0010.md +++ b/docs/core/testing/mstest-analyzers/mstest0010.md @@ -39,7 +39,7 @@ Methods marked with `[ClassInitialize]` should follow the following layout to be - it should not be generic - it should take one parameter of type `TestContext` - return type should be `void`, `Task` or `ValueTask` -- 'InheritanceBehavior.BeforeEachDerivedClass' attribute parameter should be specified if the class is 'abstract'. +- `InheritanceBehavior.BeforeEachDerivedClass` attribute parameter should be specified if the class is `abstract`. [!INCLUDE [test-class-rules](includes/test-class-rules.md)]