Skip to content

chore: Bump NSubstitute from 6.1.0 to 6.2.0 - #842

Merged
vbreuss merged 1 commit into
mainfrom
dependabot/nuget/NSubstitute-6.2.0
Aug 17, 2026
Merged

chore: Bump NSubstitute from 6.1.0 to 6.2.0#842
vbreuss merged 1 commit into
mainfrom
dependabot/nuget/NSubstitute-6.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 17, 2026

Copy link
Copy Markdown
Contributor

Updated NSubstitute from 6.1.0 to 6.2.0.

Release notes

Sourced from NSubstitute's releases.

6.2.0

NSubstitute v6.2.0

This release improves generic call matching (#​989, #​974, #​990). Thanks to @​zvirja and @​JMolenkamp for fixes this.
We've also switched to using trusted nuget publishing linked to GitHub Releases. (#​987, @​zvirja)

What's Changed

Full Changelog: nsubstitute/NSubstitute@v6.1.0...v6.2.0

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Aug 17, 2026
@github-actions

Copy link
Copy Markdown

Test Results

    24 files  ±0      24 suites  ±0   11m 43s ⏱️ +20s
 4 320 tests ±0   4 318 ✅ ±0  2 💤 ±0  0 ❌ ±0 
27 568 runs  ±0  27 564 ✅ ±0  4 💤 ±0  0 ❌ ±0 

Results for commit e8a9a1a. ± Comparison against base commit 52d3e06.

@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 3.24GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.400
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Event Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 297.8 ns 10.02 ns 9.38 ns 0.99 1.7 KB 1.00
Mockolate 300.8 ns 8.24 ns 7.71 ns 1.00 1.7 KB 1.00
Imposter 1,390.1 ns 23.99 ns 21.26 ns 4.62 8.8 KB 5.17
TUnitMocks 196.9 ns 4.38 ns 3.66 ns 0.66 1.34 KB 0.79
Moq 16,335.7 ns 114.07 ns 101.12 ns 54.35 12.51 KB 7.34
NSubstitute 5,887.7 ns 27.38 ns 25.61 ns 19.59 9.05 KB 5.31
FakeItEasy 216,710.2 ns 1,957.11 ns 1,830.69 ns 720.96 15.26 KB 8.96
Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 9V74 2.87GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.400
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Method N Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 1 313.0 ns 1.85 ns 1.64 ns 0.89 1.93 KB 1.00
Mockolate 1 353.2 ns 4.83 ns 4.52 ns 1.00 1.93 KB 1.00
Imposter 1 540.8 ns 9.59 ns 8.97 ns 1.53 4.04 KB 2.09
TUnitMocks 1 511.2 ns 8.54 ns 7.99 ns 1.45 2.02 KB 1.04
Moq 1 136,526.8 ns 660.55 ns 551.59 ns 386.56 14.95 KB 7.75
NSubstitute 1 5,664.8 ns 63.14 ns 59.06 ns 16.04 9.12 KB 4.72
FakeItEasy 1 5,487.0 ns 61.58 ns 57.60 ns 15.54 8.05 KB 4.17
baseline* 10 695.5 ns 11.82 ns 11.06 ns 1.14 2.14 KB 1.00
Mockolate 10 611.6 ns 3.48 ns 3.26 ns 1.00 2.14 KB 1.00
Imposter 10 1,066.1 ns 12.18 ns 9.51 ns 1.74 5.52 KB 2.58
TUnitMocks 10 1,454.6 ns 35.42 ns 33.13 ns 2.38 3.73 KB 1.74
Moq 10 141,073.9 ns 519.36 ns 485.81 ns 230.66 18.86 KB 8.81
NSubstitute 10 8,486.9 ns 104.72 ns 87.44 ns 13.88 12.07 KB 5.64
FakeItEasy 10 8,988.7 ns 154.04 ns 144.09 ns 14.70 15.42 KB 7.20
Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
INTEL XEON PLATINUM 8573C 3.50GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.400
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v4

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Indexer N Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 1 1,727.0 ns 4.57 ns 4.28 ns 1.90 3.77 KB 1.00
Mockolate 1 910.5 ns 49.80 ns 46.58 ns 1.00 3.77 KB 1.00
Imposter 1 737.2 ns 10.64 ns 9.43 ns 0.81 5.16 KB 1.37
Moq 1 95,720.4 ns 1,489.65 ns 1,393.42 ns 105.39 20.79 KB 5.52
NSubstitute 1 8,855.4 ns 56.48 ns 52.83 ns 9.75 12.84 KB 3.41
FakeItEasy 1 7,290.3 ns 89.19 ns 83.43 ns 8.03 13.62 KB 3.62
baseline* 10 2,416.4 ns 4.25 ns 3.55 ns 0.98 4.82 KB 1.00
Mockolate 10 2,472.7 ns 36.82 ns 32.64 ns 1.00 4.82 KB 1.00
Imposter 10 1,953.2 ns 148.38 ns 138.79 ns 0.79 7.97 KB 1.65
Moq 10 108,954.1 ns 1,882.81 ns 1,761.18 ns 44.07 30.3 KB 6.29
NSubstitute 10 21,286.0 ns 166.14 ns 147.28 ns 8.61 25.63 KB 5.32
FakeItEasy 10 17,551.9 ns 88.52 ns 82.80 ns 7.10 32.98 KB 6.84
Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.400
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Callback Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 308.8 ns 5.98 ns 5.59 ns 0.96 1.57 KB 1.00
Mockolate 320.7 ns 14.09 ns 13.18 ns 1.00 1.57 KB 1.00
Imposter 412.0 ns 5.41 ns 4.80 ns 1.29 2.38 KB 1.52
TUnitMocks 518.7 ns 3.85 ns 3.60 ns 1.62 1.99 KB 1.27
Moq 96,650.8 ns 186.46 ns 165.29 ns 301.83 8.88 KB 5.66
NSubstitute 4,561.2 ns 14.66 ns 12.24 ns 14.24 7.71 KB 4.91
FakeItEasy 4,647.7 ns 20.14 ns 18.84 ns 14.51 6.81 KB 4.33
Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.400
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

Property N Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 1 556.9 ns 11.24 ns 9.96 ns 0.94 2.41 KB 1.00
Mockolate 1 593.4 ns 10.17 ns 9.51 ns 1.00 2.41 KB 1.00
Imposter 1 451.0 ns 3.96 ns 3.70 ns 0.76 3.13 KB 1.29
TUnitMocks 1 465.1 ns 2.55 ns 1.99 ns 0.78 1.64 KB 0.68
Moq 1 11,945.4 ns 46.67 ns 38.97 ns 20.13 10.39 KB 4.30
NSubstitute 1 7,511.0 ns 21.75 ns 18.16 ns 12.66 11.45 KB 4.74
FakeItEasy 1 8,395.5 ns 43.30 ns 38.38 ns 14.15 11.24 KB 4.66
baseline* 10 1,084.6 ns 19.84 ns 18.56 ns 1.02 2.91 KB 1.00
Mockolate 10 1,059.6 ns 3.67 ns 3.25 ns 1.00 2.91 KB 1.00
Imposter 10 1,123.1 ns 7.97 ns 6.66 ns 1.06 4.67 KB 1.61
TUnitMocks 10 1,562.0 ns 5.83 ns 5.46 ns 1.47 3.94 KB 1.35
Moq 10 19,032.5 ns 168.80 ns 149.64 ns 17.96 18.28 KB 6.29
NSubstitute 10 16,986.4 ns 66.93 ns 59.33 ns 16.03 21.08 KB 7.25
FakeItEasy 10 19,827.9 ns 77.27 ns 64.53 ns 18.71 30.81 KB 10.60
Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.64GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.400
[Host] : .NET 10.0.11 (10.0.11, 10.0.1126.37416), X64 RyuJIT x86-64-v3

Job=InProcess Toolchain=InProcessEmitToolchain IterationCount=15
LaunchCount=1 WarmupCount=10

CreateMock Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 16.74 ns 0.101 ns 0.090 ns 0.96 160 B 1.00
Mockolate 17.49 ns 0.365 ns 0.341 ns 1.00 160 B 1.00
Imposter 299.86 ns 3.919 ns 3.474 ns 17.15 2248 B 14.05
TUnitMocks 35.27 ns 0.204 ns 0.181 ns 2.02 200 B 1.25
Moq 1,367.72 ns 5.969 ns 5.292 ns 78.21 2096 B 13.10
NSubstitute 1,947.52 ns 15.115 ns 14.138 ns 111.37 5048 B 31.55
FakeItEasy 1,758.65 ns 5.586 ns 4.952 ns 100.57 2763 B 17.27

baseline* rows show the corresponding Mockolate benchmark from the most recent successful main branch build with results, for regression comparison.

@vbreuss
vbreuss merged commit 8444151 into main Aug 17, 2026
15 checks passed
@vbreuss
vbreuss deleted the dependabot/nuget/NSubstitute-6.2.0 branch August 17, 2026 10:52
github-actions Bot added a commit that referenced this pull request Aug 17, 2026
github-actions Bot added a commit that referenced this pull request Aug 17, 2026
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