Skip to content

Commit

Permalink
Fix FAR integration tests (#11293)
Browse files Browse the repository at this point in the history
Update integration test base lines to match the FAR behavior introduced
with #11279
  • Loading branch information
davidwengier authored Dec 12, 2024
2 parents 96eab23 + 572585c commit e7e7fc0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task FindAllReferences_CSharpInRazor()
{
reference =>
{
Assert.Equal(expected: "IncrementCount", actual: reference.Code);
Assert.Equal(expected: "<button class=\"btn btn-primary\" @onclick=\"IncrementCount\">Click me</button>", actual: reference.Code);
Assert.Equal(expected: "Counter.razor", Path.GetFileName(reference.DocumentName));
},
reference =>
Expand Down Expand Up @@ -75,17 +75,17 @@ public async Task FindAllReferences_ComponentAttribute_FromRazor()
reference =>
{
Assert.Equal("Index.razor", reference.DocumentName);
Assert.Equal("Title", reference.Code);
Assert.Equal("<SurveyPrompt Title=\"How is Blazor working for you?\" />", reference.Code);
},
reference =>
{
Assert.Equal("SurveyPrompt.razor", reference.DocumentName);
Assert.Equal("public string? Title { get; set; }", reference.Code);
Assert.Equal("<strong>@Title</strong>", reference.Code);
},
reference =>
{
Assert.Equal("SurveyPrompt.razor", reference.DocumentName);
Assert.Equal("Title", reference.Code);
Assert.Equal("public string? Title { get; set; }", reference.Code);
}
);
}
Expand Down

0 comments on commit e7e7fc0

Please sign in to comment.