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
andThrowsAsync
for sequential setups of methods returning aValueTask
(@stakx, #626)
๐ Changed
- ๐ฅ Breaking change: All
ReturnsAsync
andThrowsAsync
setup methods now consistently return a newTask
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 causeUnobservedTaskException
(@snrnats, #595) -
ReturnsAsync
andThrowsAsync
with delay parameter starts timer at setup (@snrnats, #595) -
Returns
regression with null function callback (@Caraul, #602)
- โ Add