2016-03-04 23:48:30 +01:00
|
|
|
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
|
|
|
|
2016-05-12 23:22:04 +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
|
|
|
|
2016-05-12 23:22:04 +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
|
|
|
}
|
|
|
|
}
|