@@ -151,7 +151,7 @@ function CanSendWorkspaceSymbolRequest {
151151 . Returning < Container < SymbolInformation > > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
152152
153153 SymbolInformation symbol = Assert . Single ( symbols ) ;
154- Assert . Equal ( "CanSendWorkspaceSymbolRequest { } " , symbol . Name ) ;
154+ Assert . Equal ( "function CanSendWorkspaceSymbolRequest () " , symbol . Name ) ;
155155 }
156156
157157 [ SkippableFact ]
@@ -518,7 +518,7 @@ await PsesLanguageClient
518518 } )
519519 . Returning < DocumentHighlightContainer > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
520520
521- Assert . Collection ( documentHighlights ,
521+ Assert . Collection ( documentHighlights . OrderBy ( i => i . Range . Start . Line ) ,
522522 documentHighlight1 =>
523523 {
524524 Range range = documentHighlight1 . Range ;
@@ -868,8 +868,8 @@ function CanSendReferencesCodeLensRequest {
868868 Range range = codeLens . Range ;
869869 Assert . Equal ( 1 , range . Start . Line ) ;
870870 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 ) ;
873873
874874 CodeLens codeLensResolveResult = await PsesLanguageClient
875875 . SendRequest ( "codeLens/resolve" , codeLens )
@@ -910,26 +910,26 @@ class ChildClass : MyBaseClass, System.IDisposable {
910910 } )
911911 . Returning < CodeLensContainer > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
912912
913- Assert . Collection ( codeLenses ,
913+ Assert . Collection ( codeLenses . OrderBy ( i => i . Range . Start . Line ) ,
914914 codeLens =>
915915 {
916916 Range range = codeLens . Range ;
917917 Assert . Equal ( 5 , range . Start . Line ) ;
918918 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 ) ;
921921 } ,
922922 codeLens =>
923923 {
924924 Range range = codeLens . Range ;
925925 Assert . Equal ( 9 , range . Start . Line ) ;
926926 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 ) ;
929929 }
930930 ) ;
931931
932- CodeLens baseClassCodeLens = codeLenses . First ( ) ;
932+ CodeLens baseClassCodeLens = codeLenses . OrderBy ( i => i . Range . Start . Line ) . First ( ) ;
933933 CodeLens codeLensResolveResult = await PsesLanguageClient
934934 . SendRequest ( "codeLens/resolve" , baseClassCodeLens )
935935 . Returning < CodeLens > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
@@ -972,8 +972,8 @@ enum MyEnum {
972972 Range range = codeLens . Range ;
973973 Assert . Equal ( 5 , range . Start . Line ) ;
974974 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 ) ;
977977
978978 CodeLens codeLensResolveResult = await PsesLanguageClient
979979 . SendRequest ( "codeLens/resolve" , codeLens )
@@ -1146,7 +1146,7 @@ public async Task CanSendHoverRequestAsync()
11461146
11471147 Assert . True ( hover . Contents . HasMarkedStrings ) ;
11481148 Assert . Collection ( hover . Contents . MarkedStrings ,
1149- str1 => Assert . Equal ( "function Write-Host" , str1 . Value ) ,
1149+ str1 => Assert . Equal ( "Write-Host" , str1 . Value ) ,
11501150 str2 =>
11511151 {
11521152 Assert . Equal ( "markdown" , str2 . Language ) ;
@@ -1157,7 +1157,7 @@ public async Task CanSendHoverRequestAsync()
11571157 [ Fact ]
11581158 public async Task CanSendSignatureHelpRequestAsync ( )
11591159 {
1160- string filePath = NewTestFile ( "Get-Date " ) ;
1160+ string filePath = NewTestFile ( "Get-Date - " ) ;
11611161
11621162 SignatureHelp signatureHelp = await PsesLanguageClient
11631163 . SendRequest (
@@ -1171,7 +1171,7 @@ public async Task CanSendSignatureHelpRequestAsync()
11711171 Position = new Position
11721172 {
11731173 Line = 0 ,
1174- Character = 9
1174+ Character = 10
11751175 }
11761176 } )
11771177 . Returning < SignatureHelp > ( CancellationToken . None ) . ConfigureAwait ( true ) ;
0 commit comments