[PR #3301] [MERGED] Bump Moq from 4.13.1 to 4.14.1 #9436

Closed
opened 2026-02-07 06:02:07 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/3301
Author: @dependabot[bot]
Created: 6/11/2020
Status: Merged
Merged: 6/11/2020
Merged by: @dkanada

Base: masterHead: dependabot/nuget/Moq-4.14.1


📝 Commits (1)

  • 98a0bfc Bump Moq from 4.13.1 to 4.14.1

📊 Changes

2 files changed (+2 additions, -2 deletions)

View changed files

📝 tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj (+1 -1)
📝 tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj (+1 -1)

📄 Description

Bumps Moq from 4.13.1 to 4.14.1.

Changelog

Sourced from Moq's changelog.

4.14.1 (2020-04-28)

Added

  • New SetupSequence verbs .PassAsync() and .ThrowsAsync(...) for async methods with void return type (@fuzzybair, #993)

Fixed

  • StackOverflowException on VerifyAll when mocked method returns mocked object (@hotchkj, #1012)

4.14.0 (2020-04-24)

Added

  • A mock's setups can now be inspected and individually verified via the new Mock.Setups collection and IInvocation.MatchingSetup property (@stakx, #984-#987, #989, #995, #999)

  • New .Protected().Setup and Protected().Verify method overloads to deal with generic methods (@JmlSaul, #967)

  • Two new public methods in Times: bool Validate(int count) and string ToString() (@stakx, 975)

Changed

  • Attempts to mark conditionals setup as verifiable are now considered an error, since conditional setups are ignored during verification. Calls to .Verifiable() on conditional setups are no-ops and can be safely removed. (@stakx, #997)

  • When matching invocations against setups, captured variables nested inside expression trees are now evaluated. Their values likely matter more than their identities. (@stakx, #1000)

Fixed

  • Regression: Restored Capture.In use in mock.Verify(expression, ...) to extract arguments of previously recorded invocations. (@vgriph, #968; @stakx, #974)

  • Consistency: When mocking a class C whose constructor invokes one of its virtual members, Mock.Of<C>() now operates like new Mock<C>(): a record of such invocations is retained in the mock's Invocations collection (@stakx, #980)

  • After updating Moq from 4.10.1 to 4.11, mocking NHibernate session throws a System.NullReferenceException (@ronenfe, #955)

Commits
  • d5552d5 Update version to 4.14.1
  • 6e48c43 Formatting in changelog
  • 6c9874d Merge pull request #1014 from stakx/recursive-verification-stack-overflow
  • 85e63ea Update the changelog
  • 7d3df94 Remember already verified mocks ("graph coloring")
  • b562624 StackOverflowException during mock verification
  • dc75009 Clean up setup execution method (#1013)
  • 5da19fd Update Moq.csproj (#1011)
  • 6069ad2 New SetupSequence verbs .PassAsync() and .ThrowsAsync(...) for async methods ...
  • 14f2157 Update version to 4.14.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)

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/3301 **Author:** [@dependabot[bot]](https://github.com/apps/dependabot) **Created:** 6/11/2020 **Status:** ✅ Merged **Merged:** 6/11/2020 **Merged by:** [@dkanada](https://github.com/dkanada) **Base:** `master` ← **Head:** `dependabot/nuget/Moq-4.14.1` --- ### 📝 Commits (1) - [`98a0bfc`](https://github.com/jellyfin/jellyfin/commit/98a0bfc505789b5076d298b837e58087208e75fe) Bump Moq from 4.13.1 to 4.14.1 ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/Jellyfin.Api.Tests/Jellyfin.Api.Tests.csproj` (+1 -1) 📝 `tests/Jellyfin.Server.Implementations.Tests/Jellyfin.Server.Implementations.Tests.csproj` (+1 -1) </details> ### 📄 Description Bumps [Moq](https://github.com/moq/moq4) from 4.13.1 to 4.14.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/moq/moq4/blob/master/CHANGELOG.md">Moq's changelog</a>.</em></p> <blockquote> <h2>4.14.1 (2020-04-28)</h2> <h4>Added</h4> <ul> <li>New <code>SetupSequence</code> verbs <code>.PassAsync()</code> and <code>.ThrowsAsync(...)</code> for async methods with <code>void</code> return type (<a href="https://github.com/fuzzybair">@fuzzybair</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/993">#993</a>)</li> </ul> <h4>Fixed</h4> <ul> <li><code>StackOverflowException</code> on <code>VerifyAll</code> when mocked method returns mocked object (<a href="https://github.com/hotchkj">@hotchkj</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/1012">#1012</a>)</li> </ul> <h2>4.14.0 (2020-04-24)</h2> <h4>Added</h4> <ul> <li> <p>A mock's setups can now be inspected and individually verified via the new <code>Mock.Setups</code> collection and <code>IInvocation.MatchingSetup</code> property (<a href="https://github.com/stakx">@stakx</a>, #984-<a href="https://github-redirect.dependabot.com/moq/moq4/issues/987">#987</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/989">#989</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/995">#995</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/999">#999</a>)</p> </li> <li> <p>New <code>.Protected().Setup</code> and <code>Protected().Verify</code> method overloads to deal with generic methods (<a href="https://github.com/JmlSaul">@JmlSaul</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/967">#967</a>)</p> </li> <li> <p>Two new public methods in <code>Times</code>: <code>bool Validate(int count)</code> and <code>string ToString()</code> (<a href="https://github.com/stakx">@stakx</a>, 975)</p> </li> </ul> <h4>Changed</h4> <ul> <li> <p>Attempts to mark conditionals setup as verifiable are now considered an error, since conditional setups are ignored during verification. Calls to <code>.Verifiable()</code> on conditional setups are no-ops and can be safely removed. (<a href="https://github.com/stakx">@stakx</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/997">#997</a>)</p> </li> <li> <p>When matching invocations against setups, captured variables nested inside expression trees are now evaluated. Their values likely matter more than their identities. (<a href="https://github.com/stakx">@stakx</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/1000">#1000</a>)</p> </li> </ul> <h4>Fixed</h4> <ul> <li> <p>Regression: Restored <code>Capture.In</code> use in <code>mock.Verify(expression, ...)</code> to extract arguments of previously recorded invocations. (<a href="https://github.com/vgriph">@vgriph</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/968">#968</a>; <a href="https://github.com/stakx">@stakx</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/974">#974</a>)</p> </li> <li> <p>Consistency: When mocking a class <code>C</code> whose constructor invokes one of its virtual members, <code>Mock.Of&lt;C&gt;()</code> now operates like <code>new Mock&lt;C&gt;()</code>: a record of such invocations is retained in the mock's <code>Invocations</code> collection (<a href="https://github.com/stakx">@stakx</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/980">#980</a>)</p> </li> <li> <p>After updating Moq from 4.10.1 to 4.11, mocking NHibernate session throws a <code>System.NullReferenceException</code> (<a href="https://github.com/ronenfe">@ronenfe</a>, <a href="https://github-redirect.dependabot.com/moq/moq4/issues/955">#955</a>)</p> </li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/moq/moq4/commit/d5552d5762033764b495cd122d55185f0adddbf8"><code>d5552d5</code></a> Update version to 4.14.1</li> <li><a href="https://github.com/moq/moq4/commit/6e48c432a1e0cdb0b39c61ddea3e9d8f766eae8a"><code>6e48c43</code></a> Formatting in changelog</li> <li><a href="https://github.com/moq/moq4/commit/6c9874dbb71acf97ecd4c0004c1fa99d9244e50d"><code>6c9874d</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/moq/moq4/issues/1014">#1014</a> from stakx/recursive-verification-stack-overflow</li> <li><a href="https://github.com/moq/moq4/commit/85e63eae98d074c8deaddd75f2d22b468f199b71"><code>85e63ea</code></a> Update the changelog</li> <li><a href="https://github.com/moq/moq4/commit/7d3df945f40ec3793e3935a2cf030727ab6857d3"><code>7d3df94</code></a> Remember already verified mocks (&quot;graph coloring&quot;)</li> <li><a href="https://github.com/moq/moq4/commit/b5626243a24157f4c055203ed78870c1815ddc41"><code>b562624</code></a> <code>StackOverflowException</code> during mock verification</li> <li><a href="https://github.com/moq/moq4/commit/dc75009dd5141817bac5aa3bbdade3c18156d137"><code>dc75009</code></a> Clean up setup execution method (<a href="https://github-redirect.dependabot.com/moq/moq4/issues/1013">#1013</a>)</li> <li><a href="https://github.com/moq/moq4/commit/5da19fd5c501714a071f14c8cedb70f25eb98f24"><code>5da19fd</code></a> Update Moq.csproj (<a href="https://github-redirect.dependabot.com/moq/moq4/issues/1011">#1011</a>)</li> <li><a href="https://github.com/moq/moq4/commit/6069ad2c863f98d7a473a1ba9e652885f1678d8e"><code>6069ad2</code></a> New SetupSequence verbs .PassAsync() and .ThrowsAsync(...) for async methods ...</li> <li><a href="https://github.com/moq/moq4/commit/14f21576121ad48984f359a09843a444148a9b3b"><code>14f2157</code></a> Update version to 4.14.0</li> <li>Additional commits viewable in <a href="https://github.com/moq/moq4/compare/v4.13.1...v4.14.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Moq&package-manager=nuget&previous-version=4.13.1&new-version=4.14.1)](https://help.github.com/articles/configuring-automated-security-fixes) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> 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) </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:02:07 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9436