moq/moq4
### [`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: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
4.16.1
->4.17.2
Release Notes
moq/moq4
### [`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.IsAnyConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.