@@ -66,26 +66,26 @@ public async Task CompletesCommandFromModule()
66
66
Assert . StartsWith ( CompleteCommandFromModule . GetRandomDetail , actual . Detail ) ;
67
67
}
68
68
69
- [ SkippableFact ]
69
+ [ Fact ]
70
70
public async Task CompletesTypeName ( )
71
71
{
72
- Skip . If (
73
- ! VersionUtils . IsNetCore ,
74
- "In Windows PowerShell the CommandCompletion fails in the test harness, but works manually." ) ;
75
-
76
72
IEnumerable < CompletionItem > results = await GetCompletionResultsAsync ( CompleteTypeName . SourceDetails ) . ConfigureAwait ( true ) ;
77
73
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
+ }
79
83
}
80
84
81
85
[ Trait ( "Category" , "Completions" ) ]
82
- [ SkippableFact ]
86
+ [ Fact ]
83
87
public async Task CompletesNamespace ( )
84
88
{
85
- Skip . If (
86
- ! VersionUtils . IsNetCore ,
87
- "In Windows PowerShell the CommandCompletion fails in the test harness, but works manually." ) ;
88
-
89
89
IEnumerable < CompletionItem > results = await GetCompletionResultsAsync ( CompleteNamespace . SourceDetails ) . ConfigureAwait ( true ) ;
90
90
CompletionItem actual = Assert . Single ( results ) ;
91
91
Assert . Equal ( CompleteNamespace . ExpectedCompletion , actual ) ;
0 commit comments