@@ -66,26 +66,30 @@ 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
82
+ {
83
+ Kind = CompletionItemKind . Class ,
84
+ Detail = "Class System.Collections.ArrayList"
85
+ } , actual ) ;
86
+ }
79
87
}
80
88
81
89
[ Trait ( "Category" , "Completions" ) ]
82
- [ SkippableFact ]
90
+ [ Fact ]
83
91
public async Task CompletesNamespace ( )
84
92
{
85
- Skip . If (
86
- ! VersionUtils . IsNetCore ,
87
- "In Windows PowerShell the CommandCompletion fails in the test harness, but works manually." ) ;
88
-
89
93
IEnumerable < CompletionItem > results = await GetCompletionResultsAsync ( CompleteNamespace . SourceDetails ) . ConfigureAwait ( true ) ;
90
94
CompletionItem actual = Assert . Single ( results ) ;
91
95
Assert . Equal ( CompleteNamespace . ExpectedCompletion , actual ) ;
0 commit comments