Skip to content

Commit 606d636

Browse files
committed
Enable skipped Windows PowerShell completion tests
1 parent 888675e commit 606d636

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

test/PowerShellEditorServices.Test/Language/CompletionHandlerTests.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,26 @@ public async Task CompletesCommandFromModule()
6666
Assert.StartsWith(CompleteCommandFromModule.GetRandomDetail, actual.Detail);
6767
}
6868

69-
[SkippableFact]
69+
[Fact]
7070
public async Task CompletesTypeName()
7171
{
72-
Skip.If(
73-
!VersionUtils.IsNetCore,
74-
"In Windows PowerShell the CommandCompletion fails in the test harness, but works manually.");
75-
7672
IEnumerable<CompletionItem> results = await GetCompletionResultsAsync(CompleteTypeName.SourceDetails).ConfigureAwait(true);
7773
CompletionItem actual = Assert.Single(results);
78-
Assert.Equal(CompleteTypeName.ExpectedCompletion, actual);
74+
if (VersionUtils.IsNetCore)
75+
{
76+
Assert.Equal(CompleteTypeName.ExpectedCompletion, actual);
77+
}
78+
else
79+
{
80+
// Windows PowerShell shows ArrayList as a Class.
81+
Assert.Equal(CompleteTypeName.ExpectedCompletion with { Kind = CompletionItemKind.Class }, actual);
82+
}
7983
}
8084

8185
[Trait("Category", "Completions")]
82-
[SkippableFact]
86+
[Fact]
8387
public async Task CompletesNamespace()
8488
{
85-
Skip.If(
86-
!VersionUtils.IsNetCore,
87-
"In Windows PowerShell the CommandCompletion fails in the test harness, but works manually.");
88-
8989
IEnumerable<CompletionItem> results = await GetCompletionResultsAsync(CompleteNamespace.SourceDetails).ConfigureAwait(true);
9090
CompletionItem actual = Assert.Single(results);
9191
Assert.Equal(CompleteNamespace.ExpectedCompletion, actual);

0 commit comments

Comments
 (0)