@@ -151,7 +151,7 @@ function CanSendWorkspaceSymbolRequest {
151
151
. Returning < Container < SymbolInformation > > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
152
152
153
153
SymbolInformation symbol = Assert . Single ( symbols ) ;
154
- Assert . Equal ( "CanSendWorkspaceSymbolRequest { } " , symbol . Name ) ;
154
+ Assert . Equal ( "function CanSendWorkspaceSymbolRequest () " , symbol . Name ) ;
155
155
}
156
156
157
157
[ SkippableFact ]
@@ -518,7 +518,7 @@ await PsesLanguageClient
518
518
} )
519
519
. Returning < DocumentHighlightContainer > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
520
520
521
- Assert . Collection ( documentHighlights ,
521
+ Assert . Collection ( documentHighlights . OrderBy ( i => i . Range . Start . Line ) ,
522
522
documentHighlight1 =>
523
523
{
524
524
Range range = documentHighlight1 . Range ;
@@ -868,8 +868,8 @@ function CanSendReferencesCodeLensRequest {
868
868
Range range = codeLens . Range ;
869
869
Assert . Equal ( 1 , range . Start . Line ) ;
870
870
Assert . Equal ( 9 , range . Start . Character ) ;
871
- Assert . Equal ( 3 , range . End . Line ) ;
872
- Assert . Equal ( 1 , range . End . Character ) ;
871
+ Assert . Equal ( 1 , range . End . Line ) ;
872
+ Assert . Equal ( 41 , range . End . Character ) ;
873
873
874
874
CodeLens codeLensResolveResult = await PsesLanguageClient
875
875
. SendRequest ( "codeLens/resolve" , codeLens )
@@ -910,26 +910,26 @@ class ChildClass : MyBaseClass, System.IDisposable {
910
910
} )
911
911
. Returning < CodeLensContainer > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
912
912
913
- Assert . Collection ( codeLenses ,
913
+ Assert . Collection ( codeLenses . OrderBy ( i => i . Range . Start . Line ) ,
914
914
codeLens =>
915
915
{
916
916
Range range = codeLens . Range ;
917
917
Assert . Equal ( 5 , range . Start . Line ) ;
918
918
Assert . Equal ( 6 , range . Start . Character ) ;
919
- Assert . Equal ( 7 , range . End . Line ) ;
920
- Assert . Equal ( 1 , range . End . Character ) ;
919
+ Assert . Equal ( 5 , range . End . Line ) ;
920
+ Assert . Equal ( 17 , range . End . Character ) ;
921
921
} ,
922
922
codeLens =>
923
923
{
924
924
Range range = codeLens . Range ;
925
925
Assert . Equal ( 9 , range . Start . Line ) ;
926
926
Assert . Equal ( 6 , range . Start . Character ) ;
927
- Assert . Equal ( 11 , range . End . Line ) ;
928
- Assert . Equal ( 1 , range . End . Character ) ;
927
+ Assert . Equal ( 9 , range . End . Line ) ;
928
+ Assert . Equal ( 16 , range . End . Character ) ;
929
929
}
930
930
) ;
931
931
932
- CodeLens baseClassCodeLens = codeLenses . First ( ) ;
932
+ CodeLens baseClassCodeLens = codeLenses . OrderBy ( i => i . Range . Start . Line ) . First ( ) ;
933
933
CodeLens codeLensResolveResult = await PsesLanguageClient
934
934
. SendRequest ( "codeLens/resolve" , baseClassCodeLens )
935
935
. Returning < CodeLens > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
@@ -972,8 +972,8 @@ enum MyEnum {
972
972
Range range = codeLens . Range ;
973
973
Assert . Equal ( 5 , range . Start . Line ) ;
974
974
Assert . Equal ( 5 , range . Start . Character ) ;
975
- Assert . Equal ( 9 , range . End . Line ) ;
976
- Assert . Equal ( 1 , range . End . Character ) ;
975
+ Assert . Equal ( 5 , range . End . Line ) ;
976
+ Assert . Equal ( 11 , range . End . Character ) ;
977
977
978
978
CodeLens codeLensResolveResult = await PsesLanguageClient
979
979
. SendRequest ( "codeLens/resolve" , codeLens )
@@ -1146,7 +1146,7 @@ public async Task CanSendHoverRequestAsync()
1146
1146
1147
1147
Assert . True ( hover . Contents . HasMarkedStrings ) ;
1148
1148
Assert . Collection ( hover . Contents . MarkedStrings ,
1149
- str1 => Assert . Equal ( "function Write-Host" , str1 . Value ) ,
1149
+ str1 => Assert . Equal ( "Write-Host" , str1 . Value ) ,
1150
1150
str2 =>
1151
1151
{
1152
1152
Assert . Equal ( "markdown" , str2 . Language ) ;
@@ -1157,7 +1157,7 @@ public async Task CanSendHoverRequestAsync()
1157
1157
[ Fact ]
1158
1158
public async Task CanSendSignatureHelpRequestAsync ( )
1159
1159
{
1160
- string filePath = NewTestFile ( "Get-Date " ) ;
1160
+ string filePath = NewTestFile ( "Get-Date - " ) ;
1161
1161
1162
1162
SignatureHelp signatureHelp = await PsesLanguageClient
1163
1163
. SendRequest (
@@ -1171,7 +1171,7 @@ public async Task CanSendSignatureHelpRequestAsync()
1171
1171
Position = new Position
1172
1172
{
1173
1173
Line = 0 ,
1174
- Character = 9
1174
+ Character = 10
1175
1175
}
1176
1176
} )
1177
1177
. Returning < SignatureHelp > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
0 commit comments