Skip to content

Instantly share code, notes, and snippets.

@mattmcnabb
Last active November 12, 2015 01:32
Show Gist options
  • Save mattmcnabb/85287e5ffff4426f3767 to your computer and use it in GitHub Desktop.
Save mattmcnabb/85287e5ffff4426f3767 to your computer and use it in GitHub Desktop.
Short-Circuit Evaluation in Pester It Blocks
Describe "Example" {
It "Performs short-circuit evaluation" {
Test-Path c:\NoDirHere | Should be $true
Get-ChildItem c:\NoDirHere -File | Should Not Be $null
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment