Skip to content

Commit ea02f0f

Browse files
committed
Use -BeOfType option
1 parent daa1c69 commit ea02f0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Shared/ScriptBlock/Tests/Add-ScriptBlockInjection.Tests.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ Describe "Generic Testing" {
1919
}
2020

2121
It "Making sure it is a ScriptBlock type" {
22-
$Script:results.GetType().Name | Should -Be "ScriptBlock"
22+
$Script:results | Should -BeOfType "ScriptBlock"
2323
}
2424

2525
It "Can be converted to script block" {
2626
$Script:results = [ScriptBlock]::Create($Script:results)
27-
$Script:results.GetType().Name | Should -Be "ScriptBlock"
27+
$Script:results | Should -BeOfType "ScriptBlock"
2828
}
2929
}
3030

0 commit comments

Comments
 (0)