mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Unify pester test syntax for the arguments of -BeOfType (#11558)
This commit is contained in:
1 parent
a7a2b12336
commit
920b671fb4
68 files changed
+216
-216
No files matched your search
@@ -290,7 +290,7 @@ Describe "Exception from initializer" -Tags "CI" {
|
||||
|
||||
It "static member w/ ctor" {
|
||||
$e = { $null = [MSFT_6397334c]::a } | Should -Throw -PassThru
|
||||
$e.Exception | Should -BeOfType 'System.TypeInitializationException'
|
||||
$e.Exception | Should -BeOfType System.TypeInitializationException
|
||||
$e.Exception.InnerException.ErrorRecord.FullyQualifiedErrorId | Should -BeExactly 'InvalidCastFromStringToInteger'
|
||||
$e.Exception.InnerException.InnerException.ErrorRecord.InvocationInfo.Line | Should -Match 'a = "zz"'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user