mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Add property assignment completion for enums (#19178)
* Add property assignment completion for enums * Move method
This commit is contained in:
@@ -378,6 +378,11 @@ using `
|
||||
$res.CompletionMatches[0].CompletionText | Should -BeExactly '${PSVersionTable}'
|
||||
}
|
||||
|
||||
It 'Should work for property assignment of enum type:' {
|
||||
$res = TabExpansion2 -inputScript '$psstyle.Progress.View="Clas'
|
||||
$res.CompletionMatches[0].CompletionText | Should -Be '"Classic"'
|
||||
}
|
||||
|
||||
It 'Should work for variable assignment of enum type: <inputStr>' -TestCases @(
|
||||
@{ inputStr = '$ErrorActionPreference = '; filter = ''; doubleQuotes = $false }
|
||||
@{ inputStr = '$ErrorActionPreference='; filter = ''; doubleQuotes = $false }
|
||||
|
||||
Reference in New Issue
Block a user