Fixed the issue in PR

This commit is contained in:
TingLiu6 committed 2016-04-13 20:16:36 -07:00
1 parent b32e949cab
commit 5300811ff9
1 file changed
+6 -6
+6 -6
View File
@@ -84,8 +84,8 @@ set-psbreakpoint -command foo
Remove-PSBreakPoint -Id $brk.Id Remove-PSBreakPoint -Id $brk.Id
} }
#-Skip:($IsLinux -Or $IsOSX) # Marking as Pending tracking in Issue #829
It "Should be throw Exception when missing mandatory parameter -line skip as bug #829" -Skip:$true { It "Should be throw Exception when missing mandatory parameter -line" -Pending {
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
try { try {
powershell.exe -noninteractive -command 'sbp -column 1' -script $scriptFileName powershell.exe -noninteractive -command 'sbp -column 1' -script $scriptFileName
@@ -97,7 +97,8 @@ set-psbreakpoint -command foo
$ErrorActionPreference = "SilentlyContinue" $ErrorActionPreference = "SilentlyContinue"
} }
It "Should be throw Exception when missing mandatory parameter -script skip as bug #829" -Skip:$true { # Marking as Pending tracking in Issue #829
It "Should be throw Exception when missing mandatory parameter" -Pending {
$ErrorActionPreference = "Stop" $ErrorActionPreference = "Stop"
try { try {
powershell.exe -noninteractive -command 'sbp -line 1' powershell.exe -noninteractive -command 'sbp -line 1'
@@ -171,8 +172,8 @@ set-psbreakpoint -command foo
$ErrorActionPreference = "SilentlyContinue" $ErrorActionPreference = "SilentlyContinue"
} }
#Expose Bug 154112 # Marking as Pending tracking in Issue #829
It "Remove implicit script from 'set-psbreakpoint -script'" { It "Remove implicit script from 'set-psbreakpoint -script'" -Pending {
if ($IsLinux) if ($IsLinux)
{ {
powershell $scriptFileNameBug powershell $scriptFileNameBug
@@ -184,7 +185,6 @@ set-psbreakpoint -command foo
$breakpoint = Get-PSBreakpoint -Script $scriptFileNameBug $breakpoint = Get-PSBreakpoint -Script $scriptFileNameBug
$breakpoint | Should BeNullOrEmpty $breakpoint | Should BeNullOrEmpty
} }
It "Fail to set psbreakpoints when script is a file of wrong type" { It "Fail to set psbreakpoints when script is a file of wrong type" {