-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Mocking a class and two unrelated interfaces didn't work
The case were you can create a mixin with a class and two unrelated interfaces was show in the docs but not tested in code. This commit adds a new test and a fix for this use case. As a collateral, the new ForPartsOf<ITestInterface, TestNonVirtualClass> will not check if the class implements the interface. In such a case it will behave just like For<>;
- Loading branch information
1 parent
1e1f4e2
commit 302440e
Showing
3 changed files
with
69 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters