8000 Add LINQ to Mocks support for strict mocks by stakx · Pull Request #842 · devlooped/moq · GitHub
[go: up one dir, main page]

Skip to content

Add LINQ to Mocks support for strict mocks - #842

Merged
stakx merged 5 commits into
devlooped:masterfrom
stakx:strict-linq-to-mocks
Jun 2, 2019
Merged

stakx merged 5 commits into
devlooped:masterfrom
stakx:strict-linq-to-mocks

Conversation

@stakx
@stakx stakx commented Jun 2, 2019
Copy link
Copy Markdown
Contributor

This closes #740.

stakx added 3 commits June 2, 2019 18:39
In brief, when creating strict mocks using any LINQ to Mocks method
(`Mock.Of`, `Mocks.Of`, `repository.Of`, `repository.OneOf`), it is
expected that accessing any property that does not appear in the query
specification expression should cause a `MockException`.
@stakx stakx added this to the 4.12.0 milestone Jun 2, 2019
@stakx
stakx force-pushed the strict-linq-to-mocks branch from a1c08d7 to a9212e6 Compare June 2, 2019 17:33
Comment thread src/Moq/Linq/MockSetupsBuilder.cs Resolved
@stakx
stakx force-pushed the strict-linq-to-mocks branch from a9212e6 to 5a65fe3 Compare June 2, 2019 17:40
@stakx
stakx merged commit c5a2465 into devlooped:master Jun 2, 2019
@stakx
stakx deleted the strict-linq-to-mocks branch June 2, 2019 20:08
@devlooped devlooped locked and limited conversation to collaborators Sep 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Linq to Mock for MockBehaviour.Strict

1 participant

0