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, #1257)
Fixed
Can't set up "private protected" properties (@RobSiklos, #1170)
Using [...] an old version of System.Net.Http which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" (@sidseter, #1219)
Failure when invoking a method with by-ref parameter & mockable return type on a mock with CallBase and DefaultValue.Mock configured (@IanKemp, #1249)
4.17.2 (2022-03-06)
Fixed
Regression: Property stubs not working on sub mock (@aaronburro, #1240)
4.17.1 (2022-02-26)
Added
SetupSet, VerifySet methods for mock.Protected().As<>() (@tonyhallett, #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<string>()).Result).Throws((string s) => new InvalidOperationException(s)). (@adam-knights, #1191)
Changed
Update package reference to Castle.Core (DynamicProxy) from version 4.4.0 to 4.4.1 (@stakx, #1233)
Fixed
The guard against unmatchable matchers (added in #900) was too strict; relaxed it to enable an alternative user-code shorthand _ for It.IsAny<>() (@adamfk, #1199)
mock.Protected() setup methods fail when argument is of type Expression (@tonyhallett, #1189)
Parameter is invalid in Protected().SetupSet() ... VerifySet (@tonyhallett, #1186)
Virtual properties and automocking not working for mock.Protected().As<>() (@tonyhallett, #1185)
Issue mocking VB.NET class with overloaded property/indexer in base class (@myurashchyk, #1153)
Equivalent arrays don't test equal when returned from a method, making Verify fail when it should not (@evilc0, #1225)
Property setups are ignored on mocks instantiated using Mock.Of (@stakx, #1066)
SetupAllProperties causes mocks to become race-prone (@estrizhok, #1231)
4.17.0
This version was skipped due to an intermittent NuGet publishing issue.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps Moq from 4.14.5 to 4.18.0.
Changelog
Sourced from Moq's changelog.
... (truncated)
Commits
eef6e1b
Update version to 4.18.075995a9
Changelog entry got added to the wrong versione437f4c
Merge pull request #1257 from stakx/dynamicproxy68ec600
Update the changelogc55e5df
Unskip test that should now be fixed in DynamicProxyc81699c
CI build should use VS 20227a94299
Addnet6.0
TFM (because DynamicProxy has it)8f0f4e1
DynamicProxy's minimum requirement is nownet462
d3fc99f
Update Castle.Core to v5fa58a8b
Merge pull request #1251 from stakx/bugfix/byref-parameter-handlingDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)