This repository was archived by the owner on Aug 16, 2024. It is now read-only.
Repository navigation
Added
Mock<T>.RaiseAsyncmethod 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
ThrowsAsyncmethods 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)