Created
April 22, 2016 17:30
-
-
Save nohwnd/f24787287a908572288ba6fd764d9d49 to your computer and use it in GitHub Desktop.
Run description in function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function SomeFunction ([ScriptBlock] $ScriptBlock) | |
{ | |
Describe "Why?" { | |
$result = &$ScriptBlock | |
$result|Should Be 10 | |
} | |
} | |
SomeFunction { 9 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment