@@ -71,34 +71,36 @@ public async Task CompletesCommandFromModule()
71
71
Assert . StartsWith ( CompleteCommandFromModule . GetRandomDetail , actual . Detail ) ;
72
72
}
73
73
74
- [ SkippableFact ]
74
+ [ Fact ]
75
75
public async Task CompletesTypeName ( )
76
76
{
77
- Skip . If ( VersionUtils . PSEdition == "Desktop" , "Windows PowerShell has trouble with this test right now." ) ;
78
77
( _ , IEnumerable < CompletionItem > results ) = await GetCompletionResultsAsync ( CompleteTypeName . SourceDetails ) . ConfigureAwait ( true ) ;
79
- CompletionItem actual = Assert . Single ( results ) ;
80
78
if ( VersionUtils . IsNetCore )
81
79
{
80
+ CompletionItem actual = Assert . Single ( results ) ;
82
81
Assert . Equal ( CompleteTypeName . ExpectedCompletion , actual ) ;
83
82
}
84
83
else
85
84
{
86
- // Windows PowerShell shows ArrayList as a Class.
87
- Assert . Equal ( CompleteTypeName . ExpectedCompletion with
88
- {
89
- Kind = CompletionItemKind . Class ,
90
- Detail = "System.Collections.ArrayList"
91
- } , actual ) ;
85
+ // Windows PowerShell no longer retrieves this completion.
86
+ Assert . Empty ( results ) ;
92
87
}
93
88
}
94
89
95
- [ SkippableFact ]
90
+ [ Fact ]
96
91
public async Task CompletesNamespace ( )
97
92
{
98
- Skip . If ( VersionUtils . PSEdition == "Desktop" , "Windows PowerShell has trouble with this test right now." ) ;
99
93
( _ , IEnumerable < CompletionItem > results ) = await GetCompletionResultsAsync ( CompleteNamespace . SourceDetails ) . ConfigureAwait ( true ) ;
100
- CompletionItem actual = Assert . Single ( results ) ;
101
- Assert . Equal ( CompleteNamespace . ExpectedCompletion , actual ) ;
94
+ if ( VersionUtils . IsNetCore )
95
+ {
96
+ CompletionItem actual = Assert . Single ( results ) ;
97
+ Assert . Equal ( CompleteNamespace . ExpectedCompletion , actual ) ;
98
+ }
99
+ else
100
+ {
101
+ // Windows PowerShell no longer retrieves this completion.
102
+ Assert . Empty ( results ) ;
103
+ }
102
104
}
103
105
104
106
[ Fact ]
0 commit comments