mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Merge pull request #1447 from PowerShell/jameswtruher/LanguageTestMigration
language pester test migration - woo - adding 800 more tests
This commit is contained in:
commit
a6072c4576
30 files changed
+4850
-3
No files matched your search
@@ -13,11 +13,14 @@
|
||||
{ Get-PSBreakpoint -Script $fullScriptPath } | Should Not Throw
|
||||
|
||||
$Id = (Get-PSBreakpoint -Script $fullScriptPath).Id
|
||||
$Id | Should be 0
|
||||
|
||||
# if breakpoints have been set by other tests, the number may or may not be 0
|
||||
# so we can't check against a specific number
|
||||
# however, we can be sure that we're getting an int and that the int is
|
||||
# greater or equal to 0
|
||||
([int]$Id) -ge 0 | should be $true
|
||||
}
|
||||
|
||||
It "sshould be able to get PSBreakpoint with using Variable switch" {
|
||||
It "should be able to get PSBreakpoint with using Variable switch" {
|
||||
Set-PSBreakpoint -Script $fullScriptPath -Variable "$scriptName"
|
||||
|
||||
{ Get-PSBreakpoint -Variable "$scriptName" -Script $fullScriptPath } | Should Not Throw
|
||||
|
||||
Reference in new issue
Block a user