Skip to content

Instantly share code, notes, and snippets.

@nohwnd
Created April 22, 2016 17:30
Show Gist options
  • Save nohwnd/f24787287a908572288ba6fd764d9d49 to your computer and use it in GitHub Desktop.
Save nohwnd/f24787287a908572288ba6fd764d9d49 to your computer and use it in GitHub Desktop.
Run description in function
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