From b3b1ec406e7832086b79837322ed6dd6688f9e5c Mon Sep 17 00:00:00 2001 From: abhiramch018 Date: Wed, 26 Nov 2025 14:24:16 +0530 Subject: [PATCH 1/2] Update mstest0018.md --- docs/core/testing/mstest-analyzers/mstest0018.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/core/testing/mstest-analyzers/mstest0018.md b/docs/core/testing/mstest-analyzers/mstest0018.md index 76be59f7b2f83..002aa976f1944 100644 --- a/docs/core/testing/mstest-analyzers/mstest0018.md +++ b/docs/core/testing/mstest-analyzers/mstest0018.md @@ -36,18 +36,16 @@ The "data source" member referenced: - should exist on the specified type (current class if no type is specified) - should not have overloads - should be of the same kind (method or property) as the `DataSourceType` property -- should be `public` - should be `static` - should not be generic - should be parameterless -- should return `IEnumerable`, `IEnumerable>` or `IEnumerable>` +- should return `IEnumerable`, `IEnumerable>`, or `IEnumerable>` The "display name" member referenced: - should exist on the specified type (current class if no type is specified) - should not have overloads - should be a method -- should be `public` - should be `static` - should not be generic - should return `string` @@ -60,7 +58,7 @@ public static string GetDisplayName(MethodInfo methodInfo, object[] data) { return string.Format("{0} ({1})", methodInfo.Name, string.Join(",", data)); } -``` + ## How to fix violations From b341c4b57157904c099d4c0e86a8967e5be72745 Mon Sep 17 00:00:00 2001 From: "Meaghan Osagie (Lewis)" Date: Mon, 1 Dec 2025 12:58:44 -0800 Subject: [PATCH 2/2] Fix code block --- docs/core/testing/mstest-analyzers/mstest0018.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/testing/mstest-analyzers/mstest0018.md b/docs/core/testing/mstest-analyzers/mstest0018.md index 002aa976f1944..b4821c74dcc61 100644 --- a/docs/core/testing/mstest-analyzers/mstest0018.md +++ b/docs/core/testing/mstest-analyzers/mstest0018.md @@ -58,7 +58,7 @@ public static string GetDisplayName(MethodInfo methodInfo, object[] data) { return string.Format("{0} ({1})", methodInfo.Name, string.Join(",", data)); } - +``` ## How to fix violations