build(deps): bump Moq from 4.16.1 to 4.18.1
Bumps Moq from 4.16.1 to 4.18.1.
Changelog
Sourced from Moq's changelog.
4.18.1 (2022-05-16)
Fixed
- Regression with lazy evaluation of
It.Ispredicates in setup expressions after updating from 4.13.1 to 4.16.1 (@b3go, #1217)- Regression with
SetupPropertywhere Moq fails to match a property accessor implementation against its definition in an interface (@Naxemar, #1248)- Difference in behavior when mocking async method using
.Resultvs without (@cyungmann, #1253)4.18.0 (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, #1257)- Adjusted our target frameworks to match DynamicProxy's (see their discussion about which frameworks to target):
- minimum .NET Framework version raised from
net45tonet462- additional
net6.0TFMFixed
- Can't set up "private protected" properties (
@RobSiklos, #1170)- Using [...] an old version of
System.Net.Httpwhich 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
CallBaseandDefaultValue.Mockconfigured (@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,VerifySetmethods formock.Protected().As<>()(@tonyhallett, #1165)- New
Throwsmethod overloads that allow specifying a function with or without parameters, to provide an exception, for example.Throws(() => new InvalidOperationException())andSetup(x => x.GetFooAsync(It.IsAny<string>()).Result).Throws((string s) => new InvalidOperationException(s)). (@adam-knights, #1191)Changed
Fixed
- The guard against unmatchable matchers (added in #900) was too strict; relaxed it to enable an alternative user-code shorthand
_forIt.IsAny<>()(@adamfk, #1199)mock.Protected()setup methods fail when argument is of typeExpression(@tonyhallett, #1189)
... (truncated)
Commits
ecd5404Update version to 4.18.1c969604Merge pull request #1262 from stakx/bugfix/lazy-setup-expr-evaluationdee0746Update the changelog819f315Optimize capture evaluation during expr comparison3535d7aLeave quoted exprs unchanged when evaluating captures37b24adAdd failing test re: lazy evaluation ofIt.Ispredicates6c7e7a1Update link to documentation website6e98431Move changelog entry to correct releasea844d5eMerge pull request #1260 from stakx/bugfix/stubbedpropertysetup-ismatch7a7a76bUpdate the changelog- Additional commits viewable in compare view
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 rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Codecov Report
Merging #508 (4fb481a) into main (d06ca3a) will decrease coverage by
0.09%. The diff coverage isn/a.
@@ Coverage Diff @@
## main #508 +/- ##
==========================================
- Coverage 82.28% 82.19% -0.10%
==========================================
Files 106 106
Lines 3302 3302
==========================================
- Hits 2717 2714 -3
- Misses 585 588 +3
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/CommandLineUtils/Utilities/DotNetExe.cs | 81.25% <0.00%> (-6.25%) |
:arrow_down: |
| src/CommandLineUtils/CommandLineApplication.cs | 93.00% <0.00%> (-0.59%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update d06ca3a...4fb481a. Read the comment docs.
Superseded by #513.