Skip to content

Assert-MockCalled fix#167

Merged
dlwyatt merged 1 commit intopester:Betafrom
dlwyatt:AssertMockCalledFix
Jul 31, 2014
Merged

Assert-MockCalled fix#167
dlwyatt merged 1 commit intopester:Betafrom
dlwyatt:AssertMockCalledFix

Conversation

@dlwyatt
Copy link
Copy Markdown
Member

@dlwyatt dlwyatt commented Jul 28, 2014

The value of the ModuleName parameter in Assert-MockCalled now defaults to Pester's current SessionState's module. As a result, inside an InModuleScope block, you no longer need to explicitly specify -ModuleName when calling Assert-MockCalled for mocks in the same module. (This brings Assert-MockCalled functionality back in line with the Mock command, which also doesn't require you to specify -ModuleName inside an InModuleScope block.)

The value of the ModuleName parameter in Assert-MockCalled now defaults to Pester's current session state.  Normally, this won't change its behavior, but inside an InModuleScope block, you no longer need to explicitly specify -ModuleName when calling Assert-MockCalled for mocks in the same module.  (This brings Assert-MockCalled functionality back in line with the Mock command, which also doesn't require you to specify -ModuleName inside an InModuleScope block.)
dlwyatt added a commit that referenced this pull request Jul 31, 2014
@dlwyatt dlwyatt merged commit 31bbc76 into pester:Beta Jul 31, 2014
@dlwyatt dlwyatt deleted the AssertMockCalledFix branch July 31, 2014 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant