diff --git a/Tests/Privileges.Tests.ps1 b/Tests/Privileges.Tests.ps1 index b47ef99..7dd4fc5 100644 --- a/Tests/Privileges.Tests.ps1 +++ b/Tests/Privileges.Tests.ps1 @@ -346,6 +346,8 @@ Describe 'The PrivilegeEnabler class' { finally { $handle.Dispose() } + + $handle.IsClosed | Should -BeTrue } # The access tokens of administrators don't hold the privilege to create a token, and those of basic users don't hold