Skip to content

Commit 65bd07f

Browse files
test update
1 parent 6cb1132 commit 65bd07f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/PowerShellEditorServices.Test.E2E/LanguageServerProtocolMessageTests.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,17 @@ await LanguageClient.SendRequest<CommandOrCodeActionContainer>(
665665
}
666666
});
667667

668-
Assert.Single(commandOrCodeActions,
669-
command => command.Command.Name == "PowerShell.ApplyCodeActionEdits");
668+
Assert.Collection(commandOrCodeActions,
669+
command =>
670+
{
671+
Assert.Equal(
672+
"'gci' is an alias of 'Get-ChildItem'. Alias can introduce possible problems and make scripts hard to maintain. Please consider changing alias to its full content.PSScriptAnalyzer(PSAvoidUsingCmdletAliases)",
673+
command.CodeAction.Title);
674+
Assert.Equal(
675+
CodeActionKind.QuickFix,
676+
command.CodeAction.Kind);
677+
Assert.Single(command.CodeAction.Edit.DocumentChanges);
678+
});
670679
}
671680

672681
[Fact]

0 commit comments

Comments
 (0)