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