Moq v4.18.2 Release Notes
Release Date: 2022-08-02 // about 2 years ago-
🔄 Changed
- ⚡️ Update package reference to
Castle.Core
(DynamicProxy) from version 5.0.0 to 5.1.0 (@stakx, #1275) - ✂ Removed dependency on
System.Threading.Tasks.Extensions
fornetstandard2.1
andnet6.0
(@tibel, #1274)
🛠 Fixed
- "Expression is not an event add" when using
.Raises()
with redeclared event (@howcheng, #1175) - 🤡
MissingMethodException
when mocking interface with sealed default implementation (@pjquirk, #1209) - 🤡 Throws
TypeLoadException
on mock when a record has a base record on .NET 6 (@tgrieger-sf, #1273)
- ⚡️ Update package reference to
Previous changes from v4.18.1
-
🛠 Fixed
- ⚡️ Regression with lazy evaluation of
It.Is
predicates in setup expressions after updating from 4.13.1 to 4.16.1 (@b3go, #1217) - Regression with
SetupProperty
where Moq fails to match a property accessor implementation against its definition in an interface (@Naxemar, #1248) - 🤡 Difference in behavior when mocking async method using
.Result
vs without (@cyungmann, #1253)
- ⚡️ Regression with lazy evaluation of