Releases: stakx/moq
Releases · stakx/moq
v4.19.0
Added
Mock<T>.RaiseAsync
method for raising "async" events, i.e. events that use aFunc<..., Task>
orFunc<..., ValueTask>
delegate. (@stakx, devlooped#1313)setup.Verifiable(Times times, [string failMessage])
method to specify the expected number of calls upfront.mock.Verify[All]
can then be used to check whether the setup was called that many times. The upper bound (maximum allowed number of calls) will be checked right away, i.e. whenever a setup gets called. (@stakx, devlooped#1319)- Add
ThrowsAsync
methods for non-genericValueTask
(@johnthcall, devlooped#1235)
Changed
- Improve performance for mocking large interfaces (@rauhs, devlooped#1351)
Fixed
- Verifying a protected generic method that returns a value is broken (@nthornton2010, devlooped#1314)