Skip to content

Commit d63bc5b

Browse files
Patch diagnostic ID.
1 parent 9234cb8 commit d63bc5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Windows.Forms.Analyzers/tests/UnitTests/System/Windows/Forms/Analyzers/AppManifestAnalyzerTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public async Task AppManifestAnalyzer_can_suppressed_if_manifest_file_has_dpi_in
133133
TestState =
134134
{
135135
AdditionalFiles = { (manifestFilePath, manifestFile) },
136-
AnalyzerConfigFiles = { ("/.globalconfig", $"is_global = true\r\ndotnet_diagnostic.WFCA010.severity = none") }
136+
AnalyzerConfigFiles = { ("/.globalconfig", $"is_global = true\r\ndotnet_diagnostic.{DiagnosticIDs.MigrateHighDpiSettings}.severity = none") }
137137
}
138138
}.RunAsync();
139139
}
@@ -152,7 +152,7 @@ public async Task AppManifestAnalyzer_can_suppressed_if_manifest_file_has_dpi_in
152152
TestState =
153153
{
154154
AdditionalFiles = { (manifestFilePath, manifestFile) },
155-
AnalyzerConfigFiles = { ("/.globalconfig", $"is_global = true\r\ndotnet_diagnostic.WFCA010.severity = none") }
155+
AnalyzerConfigFiles = { ("/.globalconfig", $"is_global = true\r\ndotnet_diagnostic.{DiagnosticIDs.MigrateHighDpiSettings}.severity = nonee") }
156156
}
157157
}.RunAsync();
158158
}

0 commit comments

Comments
 (0)