mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
20 lines
573 B
PowerShell
20 lines
573 B
PowerShell
# Copyright (c) Microsoft Corporation.
|
|
# Licensed under the MIT License.
|
|
Describe "Set-PSDebug" -Tags "CI" {
|
|
Context "Tracing can be used" {
|
|
AfterEach {
|
|
Set-PSDebug -Off
|
|
}
|
|
|
|
It "Should be able to go through the tracing options" {
|
|
{ Set-PSDebug -Trace 0 } | Should -Not -Throw
|
|
{ Set-PSDebug -Trace 1 } | Should -Not -Throw
|
|
{ Set-PSDebug -Trace 2 } | Should -Not -Throw
|
|
}
|
|
|
|
It "Should be able to set strict" {
|
|
{ Set-PSDebug -Strict } | Should -Not -Throw
|
|
}
|
|
}
|
|
}
|