Moq v4.1.1308.2120 Release Notes
-
โ Added
- โ Add capability for mocking delegates (event handlers) (@quetzalcoatl, #4)
- ๐ Allow
CallBase
for specific method / property (@srudin, #8) - ๐ New matchers
It.IsIn
andIt.IsNotIn
(@rdingwall, #27) - โ Add
.gitignore
file (@yorah, #10 / @FellicePollano, #30) - โ Add new
Verify
method overload group that accepts aTimes
instance (@ChrisMissal, #34)
๐ Changed
- โก๏ธ Update Castle.Core assemblies from version 1.2.0.0 to 3.2.0, fetch Castle.Core via NuGet (@yorah, #11 / @kzu)
- Corrected Verify method behavior for generic methods calls (@Suremaker, #25)
- Split up
Interceptor.Intercept
into a set of 8 strategies, introduceInterceptionAction
(@FellicePollano, #31)
๐ Fixed
- ๐ Fix
SetupSequentialContext
to increment counter also afterThrows
(@lukas-ais, #7) - ๐คก Make
Mock.Of
work on properties with non-public setters (@yorah, #9, #19) - โ Adding (and removing) handlers for events declared on interfaces when
CallBase = true
(@IharBury, #13) - ๐คก Distinguish between verification exception and mock crash (@quetzalcoatl, #16)
- ๐ Improve thread safety of
Interceptor
class (@FelicePollano, #29)
Note: Release notes in the above format are not available for ealier versions of Moq. The above ๐ changelog entries have been reconstructed from the Git commit history. What follows below are the ๐ original release notes, for which maintenance stopped around Moq version 4.5. They are nevertheless included below as they go back further in time.