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

Update dependency Moq to v4.20.70 #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Apr 26, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
Moq 4.14.5 -> 4.20.70 age adoption passing confidence

Release Notes

moq/moq (Moq)

v4.20.70

Full Changelog

🔨 Other:

  • a minor changes to improve the readability #​1419
  • Poll on SponsorLink #​1415
  • Change log is not updated since version 4.18.4 #​1406
  • Stop using Moq as a guinea pig to get feedback on and develop SponsorLink #​1396
  • Permanently delete all data from SponsorLink's database that has been collected during builds that included Moq (notably any version 4.20.*) #​1395
  • SponsorLink is now OSS too and no longer bundled #​1384
  • SponsorLink and supporting OSS more broadly #​1374
  • Performance issue with large interfaces #​1350

🔀 Merged:

v4.20.69

v4.20.2

🐛 Fixed bugs

NOTE: in addition, there were potential privacy issues raised with regards to the SHA256 hashing of
user' email to check for sponsorship, so it won't be coming back until that's properly addressed

v4.20.1

✨ Implemented enhancements
  • Add Sponsor button to package readme 💜

v4.20.0

✨ Implemented enhancements
  • Mock<T>.RaiseAsync method for raising "async" events, i.e. events that use a Func<..., Task> or Func<..., ValueTask> delegate. (@​stakx, #​1313)
  • setup.Verifiable(Times times, [string failMessage]) method to specify the expected number of calls upfront. mock.Verify[All] can then be used to check whether the setup was called that many times. The upper bound (maximum allowed number of calls) will be checked right away, i.e. whenever a setup gets called. (@​stakx, #​1319)
🔨 Other
Fixed

v4.18.4

Full Changelog

✨ Implemented enhancements:

  • Improve a exception message for extension methods. #​1305
  • Mocking a method that takes an in parameter #​1301

🐛 Fixed bugs:

  • .NET Hot Reload breaks mocked interfaces and throws IndexOutOfRangeException #​1252

🔨 Other:

  • Ignoring latest setup #​1311
  • Invocation count incorrect. Argument object is stored as reference and is changed incorrectly #​1309
  • Moq 4.18.3 Release still pending #​1302
  • Moq fails when a method with input parameter of type Expression<Func<T,bool>> is called #​1288
  • Use Moq as a proxy #​1287
  • TargetParameterCountException when using event Raise with Moq #​1285
  • Add CITATION.cff file #​1266
  • MissingMethodException when using new C# language features (in parameters, init-only setters, etc.) with generic methods, or with members in generic types #​1148

🔀 Merged:

v4.18.3

Fixed

v4.18.2

Changed
  • Update package reference to Castle.Core (DynamicProxy) from version 5.0.0 to 5.1.0 (@​stakx, #​1275)
  • Removed dependency on System.Threading.Tasks.Extensions for netstandard2.1 and net6.0 (@​tibel, #​1274)
Fixed
  • "Expression is not an event add" when using .Raises() with redeclared event (@​howcheng, #​1175)
  • MissingMethodException when mocking interface with sealed default implementation (@​pjquirk, #​1209)
  • Throws TypeLoadException on mock when a record has a base record on .NET 6 (@​tgrieger-sf, #​1273)

v4.18.1

Fixed
  • Regression with lazy evaluation of It.Is predicates in setup expressions after updating from 4.13.1 to 4.16.1 (@​b3go, #​1217)
  • Regression with SetupProperty where Moq fails to match a property accessor implementation against its definition in an interface (@​Naxemar, #​1248)
  • Difference in behavior when mocking async method using .Result vs without (@​cyungmann, #​1253)

v4.18.0

Full Changelog

🐛 Fixed bugs:

  • Failure when invoking a method with by-ref parameter & mockable return type on a mock with CallBase and DefaultValue.Mock configured #​1249
  • Placeholder in exception is not filled out #​1246

🔨 Other:

  • sealed method mock calls actual method instead of mocked #​1255
  • Unable to call base interface getter with cast without explicit setup. #​1254
  • Moq is using Castle.Core which has an old version of System.Net.Http which is vulnerable to "DoS", "Spoofing", "Privilege Escalation", "Authentication Bypass" and "Information Exposure" #​1219
  • Can't set up "private protected" properties #​1170

🔀 Merged:

v4.17.2

Full Changelog

🐛 Fixed bugs:

  • Property stubs not working on sub mock #​1240

🔨 Other:

  • Add support for success condition parameter in When. #​1237

🔀 Merged:

v4.17.1

Full Changelog

🐛 Fixed bugs:

  • SetupAllProperties causes mocks to become race-prone #​1231
  • Property setups are ignored on mocks instantiated using Mock.Of #​1066

🔨 Other:

  • It.IsSubtype<T> doesn't work when T has constraints #​1215

🔀 Merged:

v4.16.1

Full Changelog

✨ Implemented enhancements:

  • Improve error message when verification fails #​1138
  • Add .NET Standard 2.1 #​1041
  • Support for Mock.Of<T> with not default constructor #​963
  • Setup does not throw NotSupportedException when setting up sealed method seen through an interface #​453

🐛 Fixed bugs:

  • Property indexers raises ' System.Reflection.AmbiguousMatchException: Ambiguous match found.' exception. #​1129

🔨 Other:

  • Callback validation too strict when setting up a task's .Result property #​1132
  • Performance with large interfaces #​1128
  • Interface Default methods are ignored #​972

🔀 Merged:

v4.16.0

Full Changelog

✨ Implemented enhancements:

  • Return matched invocation from Verify #​1117
  • TypeNotMockable Exception #​1112
  • Easier async setups through a new Await(...) operator #​1007
  • Add ability to set up the .Result of (value) tasks #​1126 (@​stakx)

🐛 Fixed bugs:

  • System.InvalidOperationException because of call to Verifiable in MockSequence after 4.14.0 #​1114

🔨 Other:

  • Please document generic argument matching support for versions prior to 4.13 #​1119
  • Verify is not capturing a classes state at the time of invocation. #​1118
  • Adding a setup looks like it became an O(n*n) operation since #​984 was merged #​1110
  • DbSet mocking is broken #​1091

🔀 Merged:

v4.15.2

Full Changelog

🔨 Other:

  • moq is not compatible with System.Threading.Tasks.Extensions 4.5.3 or 4.5.4 #​1107
  • Hi There, I just updated Moq package from version 4.14.7 to version 4.15.1 and noticed that it broke Unit Tests for my projects. Kindly look into this matter. Thanks in advance, Regards, Asheesh Agrawal #​1103
  • VerifyNoOtherCalls is failing a lot for existing tests due to unverified event registrations #​1102

🔀 Merged:

v4.14.7

Full Changelog

✨ Implemented enhancements:

  • New It.Is overload for matching values using custom IEqualityComparer #​1059
  • Feature request: Promote Invocation.ReturnValue to IInvocation #​920

🐛 Fixed bugs:

  • Verify() fails on items not explicitely marked a Verifiable() #​1073
  • Mock.Of of Excel interop classes fails to initialize #​1072
  • Setters on deep mocks no longer work after updating to 4.14.6 from old version #​1071
  • Callback not raised in mocked subclass #​1067

🔨 Other:

  • Unable to chain ReturnsAsync with Verifiable #​1057
  • mocked.Equals(mocked) returns false by default if mocked class overrides Equals #​802

v4.14.6

Full Changelog

🐛 Fixed bugs:

  • Mock.Of<T>((m) => ...) doesn't play well with Microsoft IOptions<T> #​1039

🔨 Other:

  • Unable to build Moq: "The Microsoft.Build.Tasks.Git.LocateRepository task failed unexpectedly." #​1060
  • [Feature request] Loose mode for commands and strict for queries. #​1056
  • ThrowsAnyAsync<> not validating type #​1050
  • Mock methods that take or return a Span<T> #​1049
  • Feature request: enable verification of extension-methods calls #​1045

🔀 Merged:


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency Moq to v4.16.1 Update dependency Moq to v4.17.2 Mar 7, 2022
@renovate renovate bot changed the title Update dependency Moq to v4.17.2 Update dependency Moq to v4.18.0 May 15, 2022
@renovate renovate bot changed the title Update dependency Moq to v4.18.0 Update dependency Moq to v4.18.1 Jun 18, 2022
@renovate renovate bot changed the title Update dependency Moq to v4.18.1 Update dependency Moq to v4.18.2 Sep 25, 2022
@renovate renovate bot changed the title Update dependency Moq to v4.18.2 Update dependency Moq to v4.18.4 Mar 17, 2023
@renovate renovate bot changed the title Update dependency Moq to v4.18.4 Update dependency Moq to v4.20.1 Aug 9, 2023
@renovate renovate bot changed the title Update dependency Moq to v4.20.1 Update dependency Moq to v4.20.2 Aug 10, 2023
@renovate renovate bot changed the title Update dependency Moq to v4.20.2 Update dependency Moq to v4.20.69 Aug 12, 2023
@renovate renovate bot changed the title Update dependency Moq to v4.20.69 Update dependency Moq to v4.20.70 Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants