|
4 | 4 | using System.Collections.Generic;
|
5 | 5 | using System.Linq;
|
6 | 6 | using System.Management.Automation;
|
7 |
| -using System.Runtime.InteropServices; |
8 | 7 | using System.Threading;
|
9 | 8 | using System.Threading.Tasks;
|
10 | 9 | using Microsoft.Extensions.Logging.Abstractions;
|
@@ -33,7 +32,6 @@ public class SymbolsServiceTests : IAsyncLifetime
|
33 | 32 | private PsesInternalHost psesHost;
|
34 | 33 | private WorkspaceService workspace;
|
35 | 34 | private SymbolsService symbolsService;
|
36 |
| - private static readonly bool s_isWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); |
37 | 35 |
|
38 | 36 | public async Task InitializeAsync()
|
39 | 37 | {
|
@@ -755,7 +753,6 @@ public async Task FindsReferencesOnEnumMember()
|
755 | 753 | Assert.Equal(symbols, GetOccurrences(FindsOccurrencesOnTypeSymbolsData.EnumMemberSourceDetails));
|
756 | 754 | }
|
757 | 755 |
|
758 |
| - // This test fetches every command in PS, |
759 | 756 | [Fact]
|
760 | 757 | public async Task FindsDetailsForBuiltInCommand()
|
761 | 758 | {
|
@@ -902,10 +899,10 @@ public void FindsSymbolsWithNewLineInFile()
|
902 | 899 | AssertIsRegion(symbol.ScriptRegion, 27, 5, 27, 10);
|
903 | 900 | }
|
904 | 901 |
|
905 |
| - [Fact(Skip = "DSC symbols don't work yet.")] |
| 902 | + [SkippableFact()] |
906 | 903 | public void FindsSymbolsInDSCFile()
|
907 | 904 | {
|
908 |
| - Skip.If(!s_isWindows, "DSC only works properly on Windows."); |
| 905 | + // Skip.If(!s_isWindows, "DSC only works properly on Windows."); |
909 | 906 |
|
910 | 907 | IEnumerable<SymbolReference> symbols = FindSymbolsInFile(FindSymbolsInDSCFile.SourceDetails);
|
911 | 908 | SymbolReference symbol = Assert.Single(symbols, i => i.Type == SymbolType.Configuration);
|
|
0 commit comments