File tree 2 files changed +12
-8
lines changed
PowerShellEditorServices.Test/Language
PowerShellEditorServices.Test.Shared/SymbolDetails
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
- Get-Process - ComputerName " test-computer "
1
+ Write-Host - ForegroundColor Black ' Test '
2
2
3
3
<#
4
4
. Synopsis
10
10
. EXAMPLE
11
11
Another example of how to use this cmdlet
12
12
#>
13
- function Get-Thing
14
- {
13
+ function Get-Thing {
15
14
[Alias ()]
16
15
[OutputType ([int ])]
17
16
Param
18
17
(
19
18
# Param1 help description
20
- [Parameter (Mandatory = $true ,
21
- ValueFromPipelineByPropertyName = $true ,
22
- Position = 0 )]
19
+ [Parameter (Mandatory = $true ,
20
+ ValueFromPipelineByPropertyName = $true ,
21
+ Position = 0 )]
23
22
$Name
24
23
)
25
-
24
+
26
25
Begin
27
26
{
28
27
}
Original file line number Diff line number Diff line change @@ -756,13 +756,18 @@ public async Task FindsReferencesOnEnumMember()
756
756
[ Fact ]
757
757
public async Task FindsDetailsForBuiltInCommand ( )
758
758
{
759
+ // Ensure help is updated prior to test run
760
+ await psesHost . ExecutePSCommandAsync (
761
+ new PSCommand ( ) . AddScript ( "Update-Help Microsoft.Powershell.Utility -SourcePath $PSHOME" ) ,
762
+ default ) ;
763
+
759
764
SymbolDetails symbolDetails = await symbolsService . FindSymbolDetailsAtLocationAsync (
760
765
GetScriptFile ( FindsDetailsForBuiltInCommandData . SourceDetails ) ,
761
766
FindsDetailsForBuiltInCommandData . SourceDetails . StartLineNumber ,
762
767
FindsDetailsForBuiltInCommandData . SourceDetails . StartColumnNumber ,
763
768
CancellationToken . None ) ;
764
769
765
- Assert . Equal ( "Gets the processes that are running on the local computer ." , symbolDetails . Documentation ) ;
770
+ Assert . Equal ( "Writes customized output to a host ." , symbolDetails . Documentation ) ;
766
771
}
767
772
768
773
[ Fact ]
You can’t perform that action at this time.
0 commit comments