The following code fails for me:
Describe "Mock" {
It "Should mock Get-ADGroup" {
Mock Get-ADGroup
Get-ADGroup "Test"
}
}
It fails with the error:
Cannot retrieve the dynamic parameters for the cmdlet.
I am running Pester 3.3.5 on PowerShell 3.0 on Windows 7.
The following code fails for me:
It fails with the error:
I am running Pester 3.3.5 on PowerShell 3.0 on Windows 7.