mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-23 08:02:07 +00:00
Enhance output documentation and error handling
This commit is contained in:
@@ -211,7 +211,7 @@ Describe 'Get-AppRemovalScopeTarget' {
|
||||
Get-AppRemovalScopeTarget -AppRemovalScopeCombo $combo -OtherUsernameTextBox $usernameBox | Should -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It 'defaults to AllUsers for an unrecognized ComboBoxItem Name' {
|
||||
It 'returns null for an unrecognized ComboBoxItem Name' {
|
||||
$combo = New-Object System.Windows.Controls.ComboBox
|
||||
$item = New-Object System.Windows.Controls.ComboBoxItem
|
||||
$item.Name = 'SomeUnrelatedControl'
|
||||
@@ -219,7 +219,7 @@ Describe 'Get-AppRemovalScopeTarget' {
|
||||
$combo.SelectedItem = $item
|
||||
$usernameBox = New-Object System.Windows.Controls.TextBox
|
||||
|
||||
Get-AppRemovalScopeTarget -AppRemovalScopeCombo $combo -OtherUsernameTextBox $usernameBox | Should -Be 'AllUsers'
|
||||
Get-AppRemovalScopeTarget -AppRemovalScopeCombo $combo -OtherUsernameTextBox $usernameBox | Should -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It 'returns an empty string for the target-user scope when the username is blank' {
|
||||
|
||||
Reference in New Issue
Block a user