-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moq1002: Update constructor checks (#115)
There are cases where Moq1002 did not catch when there was a default constructor or a constructor with all default parameters. For more information see #55 Changes: - Add additional documentation for future reviewers - Add new case to check when the mocked type constructor has no parameters or all parameters have explicit default values - Refactored existing code to extract analysis for abstract and concrete types - Removed multiple array allocations in concrete type cases - Updated existing test case that was previously passing but shouldn't (see details in #55) - Added new test case for a type that only has ctors with default parameters
- Loading branch information
Showing
2 changed files
with
82 additions
and
46 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