Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump Moq from 4.16.1 to 4.17.1 in /src #354

Merged
merged 2 commits into from
Feb 28, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 28, 2022

Bumps Moq from 4.16.1 to 4.17.1.

Changelog

Sourced from Moq's changelog.

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.

Commits
  • dcf631e Update version to 4.17.1
  • 759aa05 Update nuget API key
  • 4d052c1 Merge pull request #1234 from stakx/stubbedpropertiessetup
  • e30183b Update the changelog
  • 5014bd0 Switch to ConcurrentDictionary for better thread-safety
  • e78509b Restore LINQ to Mocks' ability to set any property
  • a3e41a4 Add dedicated setup type for SetupAllProperties
  • 5db2a42 Remove current SetupAllProperties impl
  • a0243cd Property setups are ignored on mocks instantiated using Mock.Of
  • 611652c Update version to 4.17.0
  • Additional commits viewable in compare view

Dependabot compatibility score

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](https://github.com/moq/moq4) from 4.16.1 to 4.17.1.
- [Release notes](https://github.com/moq/moq4/releases)
- [Changelog](https://github.com/moq/moq4/blob/main/CHANGELOG.md)
- [Commits](devlooped/moq@v4.16.1...v4.17.1)

---
updated-dependencies:
- dependency-name: Moq
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot requested a review from a team as a code owner February 28, 2022 13:33
@dependabot dependabot bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Feb 28, 2022
@codecov
Copy link

codecov bot commented Feb 28, 2022

Codecov Report

Merging #354 (7183ba9) into main (250ccab) will not change coverage.
The diff coverage is n/a.

❗ Current head 7183ba9 differs from pull request most recent head fd5511e. Consider uploading reports for the commit fd5511e to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #354   +/-   ##
=======================================
  Coverage   46.10%   46.10%           
=======================================
  Files         101      101           
  Lines        2967     2967           
=======================================
  Hits         1368     1368           
  Misses       1599     1599           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9e6eab6...fd5511e. Read the comment docs.

@kbeaugrand kbeaugrand enabled auto-merge (squash) February 28, 2022 14:49
@kbeaugrand kbeaugrand disabled auto-merge February 28, 2022 15:05
@kbeaugrand kbeaugrand enabled auto-merge (squash) February 28, 2022 15:05
@kbeaugrand kbeaugrand disabled auto-merge February 28, 2022 15:05
@kbeaugrand kbeaugrand merged commit ebaada3 into main Feb 28, 2022
@kbeaugrand kbeaugrand deleted the dependabot/nuget/src/Moq-4.17.1 branch February 28, 2022 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file .NET Pull requests that update .net code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant