diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Legacy/TagHelperParseTreeRewriterTest.cs b/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Legacy/TagHelperParseTreeRewriterTest.cs index 24c682d561..416cd53a09 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Legacy/TagHelperParseTreeRewriterTest.cs +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/legacyTest/Legacy/TagHelperParseTreeRewriterTest.cs @@ -552,7 +552,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase

"""; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "br" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["br"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -563,7 +563,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "


"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -574,7 +574,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

Hello

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -585,7 +585,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "


"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "br", "strong" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["br", "strong"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -596,7 +596,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "


Hello

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -607,7 +607,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

Title:
Something

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -618,7 +618,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

Title:
Something

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong", "br" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong", "br"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -629,7 +629,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

Title:
Something

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong", "br" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong", "br"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -640,7 +640,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

Title:
A Very Cool

Something

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "strong" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["strong"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -651,7 +651,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

Title:
A Very Cool

Something

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "custom" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["custom"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -662,7 +662,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "custom" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["custom"]); // Act & Assert EvaluateData(descriptors, documentContent); @@ -673,7 +673,7 @@ public class TagHelperParseTreeRewriterTest : TagHelperRewritingTestBase { // Arrange var documentContent = "

<

"; - var descriptors = TagHelperParseTreeRewriterTest.GetAllowedChildrenTagHelperDescriptors(new[] { "custom" }); + var descriptors = GetAllowedChildrenTagHelperDescriptors(["custom"]); // Act & Assert EvaluateData(descriptors, documentContent);