Skip to content

Cannot Mock Get-ADGroup #294

@ephracis

Description

@ephracis

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions