Add comprehensive test suite, fix minor issues, rename function and file names to match approved verbs (#708)

This commit is contained in:
Jeffrey
2026-07-19 22:06:07 +02:00
committed by GitHub
parent a7292e4f35
commit 9c033dbf98
116 changed files with 4629 additions and 650 deletions
@@ -0,0 +1,13 @@
BeforeAll {
. (Join-Path $PSScriptRoot '..\Scripts\Helpers\Get-TargetUserForAppRemoval.ps1')
}
Describe 'Get-TargetUserForAppRemoval' {
It '<Case>' -ForEach @(
@{ Case = 'defaults to all users'; Params = @{}; Expected = 'AllUsers' }
@{ Case = 'returns an explicit target unchanged'; Params = @{ AppRemovalTarget = 'Alice' }; Expected = 'Alice' }
) {
$script:Params = $Params
Get-TargetUserForAppRemoval | Should -Be $Expected
}
}