File tree 2 files changed +5
-1
lines changed
PowerShellEditorServices.Test/Language
PowerShellEditorServices.Test.Shared/SymbolDetails
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
Write-Host - ForegroundColor Black ' Test'
2
+ # References Test uses this one
3
+ Get-Process - Name ' powershell*'
2
4
3
5
<#
4
6
. Synopsis
Original file line number Diff line number Diff line change 4
4
using System . Collections . Generic ;
5
5
using System . Linq ;
6
6
using System . Management . Automation ;
7
+ using System . Runtime . InteropServices ;
7
8
using System . Threading ;
8
9
using System . Threading . Tasks ;
9
10
using Microsoft . Extensions . Logging . Abstractions ;
@@ -32,6 +33,7 @@ public class SymbolsServiceTests : IAsyncLifetime
32
33
private PsesInternalHost psesHost ;
33
34
private WorkspaceService workspace ;
34
35
private SymbolsService symbolsService ;
36
+ private static readonly bool isWindows = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
35
37
36
38
public async Task InitializeAsync ( )
37
39
{
@@ -907,7 +909,7 @@ public void FindsSymbolsWithNewLineInFile()
907
909
[ SkippableFact ( ) ]
908
910
public void FindsSymbolsInDSCFile ( )
909
911
{
910
- // Skip.If(!s_isWindows , "DSC only works properly on Windows.");
912
+ Skip . If ( ! isWindows , "DSC only works properly on Windows." ) ;
911
913
912
914
IEnumerable < SymbolReference > symbols = FindSymbolsInFile ( FindSymbolsInDSCFile . SourceDetails ) ;
913
915
SymbolReference symbol = Assert . Single ( symbols , i => i . Type == SymbolType . Configuration ) ;
You can’t perform that action at this time.
0 commit comments