Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
chsienki committed Aug 22, 2024
1 parent c9b4aea commit df8c74a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public class MyService<TModel>
AssertSourceMappingsMatchBaseline(compiled.CodeDocument);

// We expect this test to generate a bunch of errors.
Assert.True(compiled.CodeDocument.GetCSharpDocument().Diagnostics.Count > 0);
Assert.True(compiled.CodeDocument.GetCSharpDocument().Diagnostics.Length > 0);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ private string GetContent(HtmlContentIntermediateNode node)
// Internal for testing
internal static string GetDeterministicId(CodeRenderingContext context)
{
var uniqueId = (string)context.Items[CodeRenderingContext.SuppressUniqueIds];
var uniqueId = context.Options.SuppressUniqueIds;
if (uniqueId is null)
{
// Use the file checksum along with the absolute position in the generated code to create a unique id for each tag helper call site.
Expand Down

0 comments on commit df8c74a

Please sign in to comment.