diff --git a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs index 10082cc449a..d13dd71356d 100644 --- a/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs +++ b/src/Compiler/Microsoft.AspNetCore.Razor.Language/test/IntegrationTests/ComponentCodeGenerationTestBase.cs @@ -5550,13 +5550,13 @@ @inherits BaseComponent ]); } - [IntegrationTestFact] + [IntegrationTestFact, WorkItem("https://github.com/dotnet/razor/issues/10863")] public void PageDirective_NoForwardSlash() { // Act - var generated = CompileToCSharp(@" -@page ""MyPage"" -"); + var generated = CompileToCSharp(""" + @page "MyPage" + """); // Assert AssertDocumentNodeMatchesBaseline(generated.CodeDocument); @@ -5564,13 +5564,13 @@ public void PageDirective_NoForwardSlash() CompileToAssembly(generated); } - [IntegrationTestFact] + [IntegrationTestFact, WorkItem("https://github.com/dotnet/razor/issues/10863")] public void PageDirective_MissingRoute() { // Act - var generated = CompileToCSharp(@" -@page -"); + var generated = CompileToCSharp(""" + @page + """); // Assert AssertDocumentNodeMatchesBaseline(generated.CodeDocument);