Moq v4.1 Release Notes
-
- โ Added covariant
IMock<out T>
interface toMock<T>
- โ Added
It.IsNotNull<T>
- ๐ Fix: 'NullReferenceException when subscribing to an event'
- โ Added overloads to
Verify
to acceptTimes
as a Method Group - ๐ Feature request:
It.IsIn(..)
,It.IsNotIn(...)
- Corrected Verify method behavior for generic methods calls
- ๐คก Differentiate verification error from mock crash
- ๐ Fix: Adding (and removing) handlers for events declared on interfaces works when
CallBase = true
. - โก๏ธ Update to latest Castle
- ๐ Fix:
Mock.Of
(Functional Syntax) doesn't work on properties with non-public setters - ๐ Fix: Allow to use
CallBase
instead ofReturns
- ๐ Fix: Solved Multi-threading issue -
IndexOutOfRangeException
- ๐คก Capability of mocking delegates (event handlers)
- โ Added covariant