Skip to content

v4.19.0

Latest
Compare
Choose a tag to compare
@stakx stakx released this 20 Aug 19:02
· 4 commits to v4 since this release

Added

  • Mock<T>.RaiseAsync method for raising "async" events, i.e. events that use a Func<..., Task> or Func<..., 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-generic ValueTask (@johnthcall, devlooped#1235)

Changed

Fixed