File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
PowerShellEditorServices.Test.Shared/SymbolDetails
PowerShellEditorServices.Test/Language Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11Write-Host - ForegroundColor Black ' Test'
2+ # References Test uses this one
3+ Get-Process - Name ' powershell*'
24
35<#
46. Synopsis
Original file line number Diff line number Diff line change 44using System . Collections . Generic ;
55using System . Linq ;
66using System . Management . Automation ;
7+ using System . Runtime . InteropServices ;
78using System . Threading ;
89using System . Threading . Tasks ;
910using Microsoft . Extensions . Logging . Abstractions ;
@@ -32,6 +33,7 @@ public class SymbolsServiceTests : IAsyncLifetime
3233 private PsesInternalHost psesHost ;
3334 private WorkspaceService workspace ;
3435 private SymbolsService symbolsService ;
36+ private static readonly bool isWindows = RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ;
3537
3638 public async Task InitializeAsync ( )
3739 {
@@ -907,7 +909,7 @@ public void FindsSymbolsWithNewLineInFile()
907909 [ SkippableFact ( ) ]
908910 public void FindsSymbolsInDSCFile ( )
909911 {
910- // Skip.If(!s_isWindows , "DSC only works properly on Windows.");
912+ Skip . If ( ! isWindows , "DSC only works properly on Windows." ) ;
911913
912914 IEnumerable < SymbolReference > symbols = FindSymbolsInFile ( FindSymbolsInDSCFile . SourceDetails ) ;
913915 SymbolReference symbol = Assert . Single ( symbols , i => i . Type == SymbolType . Configuration ) ;
You can’t perform that action at this time.
0 commit comments