samq-democorp / Umbraco-CMS

MIT License
0 stars 1 forks source link

Update dependency Moq to v4.18.4 (v10/contrib) - autoclosed #77

Closed mend-for-github-com[bot] closed 1 year ago

mend-for-github-com[bot] commented 1 year ago

This PR contains the following updates:

Package Type Update Change
Moq nuget minor 4.16.1 -> 4.18.4
Moq nuget minor 4.10.1 -> 4.18.4
Moq nuget minor 4.14.5 -> 4.18.4

Release Notes

moq/moq4 ### [`v4.18.4`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4184-2022-12-30) ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 5.1.0 to 5.1.1 ([@​stakx](https://togithub.com/stakx), [#​1317](https://togithub.com/moq/moq4/issues/1317)) ### [`v4.18.3`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4183-2022-12-05) ##### Fixed - `SetupAllProperties` crashes when invoked on a `Mock` subclass ([@​mo-russo](https://togithub.com/mo-russo), [#​1278](https://togithub.com/moq/moq4/issues/1278)) ### [`v4.18.2`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4182-2022-08-02) ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 5.0.0 to 5.1.0 ([@​stakx](https://togithub.com/stakx), [#​1275](https://togithub.com/moq/moq4/issues/1275)) - Removed dependency on `System.Threading.Tasks.Extensions` for `netstandard2.1` and `net6.0` ([@​tibel](https://togithub.com/tibel), [#​1274](https://togithub.com/moq/moq4/issues/1274)) ##### Fixed - "Expression is not an event add" when using `.Raises()` with redeclared event ([@​howcheng](https://togithub.com/howcheng), [#​1175](https://togithub.com/moq/moq4/issues/1175)) - `MissingMethodException` when mocking interface with sealed default implementation ([@​pjquirk](https://togithub.com/pjquirk), [#​1209](https://togithub.com/moq/moq4/issues/1209)) - Throws `TypeLoadException` on mock when a record has a base record on .NET 6 ([@​tgrieger-sf](https://togithub.com/tgrieger-sf), [#​1273](https://togithub.com/moq/moq4/issues/1273)) ### [`v4.18.1`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4181-2022-05-16) ##### Fixed - Regression with lazy evaluation of `It.Is` predicates in setup expressions after updating from 4.13.1 to 4.16.1 ([@​b3go](https://togithub.com/b3go), [#​1217](https://togithub.com/moq/moq4/issues/1217)) - Regression with `SetupProperty` where Moq fails to match a property accessor implementation against its definition in an interface ([@​Naxemar](https://togithub.com/Naxemar), [#​1248](https://togithub.com/moq/moq4/issues/1248)) - Difference in behavior when mocking async method using `.Result` vs without ([@​cyungmann](https://togithub.com/cyungmann), [#​1253](https://togithub.com/moq/moq4/issues/1253)) ### [`v4.18.0`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4180-2022-05-12) New major version of DynamicProxy (you may get better performance!), so please update with care. ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 4.4.1 to 5.0.0 ([@​stakx](https://togithub.com/stakx), [#​1257](https://togithub.com/moq/moq4/issues/1257)) - Adjusted our target frameworks to match DynamicProxy's (see [their discussion about which frameworks to target](https://togithub.com/castleproject/Core/issues/597)): - minimum .NET Framework version raised from `net45` to `net462` - additional `net6.0` TFM ##### Fixed - Can't set up "private protected" properties ([@​RobSiklos](https://togithub.com/RobSiklos), [#​1170](https://togithub.com/moq/moq4/issues/1170)) - Using \[...] an old version of `System.Net.Http` which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" ([@​sidseter](https://togithub.com/sidseter), [#​1219](https://togithub.com/moq/moq4/issues/1219)) - Failure when invoking a method with by-ref parameter & mockable return type on a mock with `CallBase` and `DefaultValue.Mock` configured ([@​IanKemp](https://togithub.com/IanKemp), [#​1249](https://togithub.com/moq/moq4/issues/1249)) ### [`v4.17.2`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4172-2022-03-06) ##### Fixed - Regression: Property stubs not working on sub mock ([@​aaronburro](https://togithub.com/aaronburro), [#​1240](https://togithub.com/moq/moq4/issues/1240)) ### [`v4.17.1`](https://togithub.com/moq/moq4/blob/HEAD/CHANGELOG.md#​4171-2022-02-26) ##### Added - `SetupSet`, `VerifySet` methods for `mock.Protected().As<>()` ([@​tonyhallett](https://togithub.com/tonyhallett), [#​1165](https://togithub.com/moq/moq4/issues/1165)) - New `Throws` method overloads that allow specifying a function with or without parameters, to provide an exception, for example `.Throws(() => new InvalidOperationException())` and `Setup(x => x.GetFooAsync(It.IsAny()).Result).Throws((string s) => new InvalidOperationException(s))`. ([@​adam-knights](https://togithub.com/adam-knights), [#​1191](https://togithub.com/moq/moq4/issues/1191)) ##### Changed - Update package reference to `Castle.Core` (DynamicProxy) from version 4.4.0 to 4.4.1 ([@​stakx](https://togithub.com/stakx), [#​1233](https://togithub.com/moq/moq4/issues/1233)) ##### Fixed - The guard against unmatchable matchers (added in [#​900](https://togithub.com/moq/moq4/issues/900)) was too strict; relaxed it to enable an alternative user-code shorthand `_` for `It.IsAny<>()` ([@​adamfk](https://togithub.com/adamfk), [#​1199](https://togithub.com/moq/moq4/issues/1199)) - `mock.Protected()` setup methods fail when argument is of type `Expression` ([@​tonyhallett](https://togithub.com/tonyhallett), [#​1189](https://togithub.com/moq/moq4/issues/1189)) - Parameter is invalid in `Protected().SetupSet()` ... `VerifySet` ([@​tonyhallett](https://togithub.com/tonyhallett), [#​1186](https://togithub.com/moq/moq4/issues/1186)) - Virtual properties and automocking not working for `mock.Protected().As<>()` ([@​tonyhallett](https://togithub.com/tonyhallett), [#​1185](https://togithub.com/moq/moq4/issues/1185)) - Issue mocking VB.NET class with overloaded property/indexer in base class ([@​myurashchyk](https://togithub.com/myurashchyk), [#​1153](https://togithub.com/moq/moq4/issues/1153)) - Equivalent arrays don't test equal when returned from a method, making `Verify` fail when it should not ([@​evilc0](https://togithub.com/evilc0), [#​1225](https://togithub.com/moq/moq4/issues/1225)) - Property setups are ignored on mocks instantiated using `Mock.Of` ([@​stakx](https://togithub.com/stakx), [#​1066](https://togithub.com/moq/moq4/issues/1066)) - `SetupAllProperties` causes mocks to become race-prone ([@​estrizhok](https://togithub.com/estrizhok), [#​1231](https://togithub.com/moq/moq4/issues/1231))

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.