Skip to content

Commit

Permalink
Fix moq in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzngard committed Oct 4, 2024
1 parent ea556b9 commit b776c60
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ private static RazorCodeActionContext CreateRazorCodeActionContext(VSCodeActionP
codeDocument.SetSyntaxTree(syntaxTree);

var documentSnapshot = Mock.Of<IDocumentSnapshot>(document =>
document.GetGeneratedOutputAsync() == Task.FromResult(codeDocument) &&
document.GetTextAsync() == Task.FromResult(codeDocument.Source.Text), MockBehavior.Strict);

var sourceText = SourceText.From(text);
Expand Down

0 comments on commit b776c60

Please sign in to comment.