PowerShell/test/powershell/Set-PSDebug.Tests.ps1

18 lines
547 B
PowerShell
Raw Normal View History

Describe "Set-PSDebug" {
2016-05-12 22:50:46 +02:00
Context "Tracing can be used" {
AfterEach {
Set-PSDebug -Off
}
2015-10-21 19:13:06 +02:00
It "Should be able to go through the tracing options" -Skip:($env:APPVEYOR -eq "TRUE") {
2016-05-12 22:50:46 +02:00
{ Set-PSDebug -Trace 0 } | Should Not Throw
{ Set-PSDebug -Trace 1 } | Should Not Throw
{ Set-PSDebug -Trace 2 } | Should Not Throw
}
2015-10-21 19:13:06 +02:00
It "Should be able to set strict" -Skip:($env:APPVEYOR -eq "TRUE") {
2016-05-12 22:50:46 +02:00
{ Set-PSDebug -Strict } | Should Not Throw
}
2015-10-21 19:13:06 +02:00
}
}