Moq v4.8.3 Release Notes

Release Date: 2018-06-09 // almost 6 years ago
  • โž• Added

    • โž• Add ISetupSequentialResult<TResult>.Returns method overload that support delegate for deferred results (@snrnats, #594)
    • ๐Ÿ‘Œ Support for C# 7.2's in parameter modifier (@stakx, #624, #625)
    • Missing methods ReturnsAsync and ThrowsAsync for sequential setups of methods returning a ValueTask (@stakx, #626)

    ๐Ÿ”„ Changed

    • ๐Ÿ’ฅ Breaking change: All ReturnsAsync and ThrowsAsync setup methods now consistently return a new Task on each invocation (@snrnats, #595)
    • ๐Ÿคก Speed up Mock.Of<T>() by approx. one order of magnitude (@informatorius, #598)
    • โšก๏ธ Update package reference to Castle.Core (DynamicProxy) from version 4.2.1 to 4.3.0 (@stakx, #624)

    ๐Ÿ›  Fixed

    • Usage of ReturnsExtensions.ThrowsAsync() can cause UnobservedTaskException (@snrnats, #595)
    • ReturnsAsync and ThrowsAsync with delay parameter starts timer at setup (@snrnats, #595)
    • Returns regression with null function callback (@Caraul, #602)