mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
18 lines
481 B
PowerShell
18 lines
481 B
PowerShell
Describe "Write-Debug tests" -Tags "CI" {
|
|
It "Should not have added line breaks" {
|
|
$text = "0123456789"
|
|
while ($text.Length -lt [Console]::WindowWidth) {
|
|
$text += $text
|
|
}
|
|
$origDebugPref = $DebugPreference
|
|
$DebugPreference = "Continue"
|
|
try {
|
|
$out = Write-Debug $text 5>&1
|
|
$out | Should BeExactly $text
|
|
}
|
|
finally {
|
|
$DebugPreference = $origDebugPref
|
|
}
|
|
}
|
|
}
|