Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
chsienki committed Sep 20, 2024
1 parent 5e5e62d commit b345449
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5550,27 +5550,27 @@ @inherits BaseComponent<string?>
]);
}

[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);
AssertCSharpDocumentMatchesBaseline(generated.CodeDocument);
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);
Expand Down

0 comments on commit b345449

Please sign in to comment.