Bump moq from 4.14.6 to 4.15.2
Created by: dependabot[bot]
Bumps moq from 4.14.6 to 4.15.2.
Changelog
Sourced from moq's changelog.
4.15.2 (2020-11-26)
Changed
- Upgraded
System.Threading.Tasks.Extensionsdependency to version 4.5.4 (@JeffAshton, #1108)4.15.1 (2020-11-10)
Added
- New method overloads for
It.Is,It.IsIn, andIt.IsNotInthat compare values using a customIEqualityComparer<T>(@weitzhandler, #1064)- New properties
ReturnValueandExceptiononIInvocationto query recorded invocations return values or exceptions (@MaStr11, #921, #1077)- Support for "nested" type matchers, i.e. type matchers that appear as part of a composite type (such as
It.IsAnyType[]orFunc<It.IsAnyType, bool>). Argument match expressions likeIt.IsAny<Func<It.IsAnyType, bool>>()should now work as expected, whereas they previously didn't. In this particular example, you should no longer need a workaround like(Func<It.IsAnyType, bool>)It.IsAny<object>()as originally suggested in #918. (@stakx, #1092)Changed
- Event accessor calls (
+=and-=) now get consistently recorded inMock.Invocations. This previously wasn't the case for backwards compatibility withVerifyNoOtherCalls(which got implemented before it was possible to check them usingVerify{Add,Remove}). You now need to explicitly verify expected calls to event accessors prior toVerifyNoOtherCalls. Verification of+=and-=now works regardless of whether or not you set those up (which makes it consistent with how verification usually works). (@80O, @stakx, #1058, #1084)- Portable PDB (debugging symbols) are now embedded in the main library instead of being published as a separate NuGet symbols package (`.snupkg) (@kzu, #1098)
Fixed
SetupPropertyfails if property getter and setter are not both defined in mocked type (@stakx, #1017)- Expression tree argument not matched when it contains a captured variable – evaluate all captures to their current values when comparing two expression trees (@QTom01, #1054)
- Failure when parameterized
Mock.Of<>is used in query comprehensionfromclause (@stakx, #982)4.15.0
This version was accidentally published as 4.15.1 due to an intermittent problem with NuGet publishing.
4.14.7 (2020-10-14)
Changed
- Mocks created by
DefaultValue.Mocknow inheritSetupAllPropertiesfrom their "parent" mock (like it says in the XML documentation) (@stakx, #1074)Fixed
- Setup not triggered due to VB.NET transparently inserting superfluous type conversions into a setup expression (@InteXX, #1067)
- Nested mocks created by
Mock.Of<T>()no longer have their properties stubbed since version 4.14.0 (@vruss, @1071)Verifyfails for recursive setups not explicitly marked asVerifiable(@killergege, #1073)Mock.Of<>fails for COM interop types that are annotated with a[CompilerGenerated]custom attribute (@killergege, #1072)
Commits
-
f2aa090Update version to 4.15.2 -
89c116fDocumenting change in CHANGELOG -
9b31ee9Updating System.Threading.Tasks.Extensions to 4.5.4 -
2f34e0cEnsure we won't accidentally try to republish 4.15.1 again -
6898fa7Mention version 4.15.0/1 messup in changelog -
ee071f6Update nuget API key -
85218abUpdate version to 4.15.0 -
37fed5aAdd a link to sources used for build to description -
0a5ba70Update the changelog -
aea6c79Embed symbols in assembly, drop .snupkg - 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)