Skip to content

chore: Bump NSubstitute from 5.3.0 to 6.0.0#813

Merged
vbreuss merged 1 commit into
mainfrom
dependabot/nuget/NSubstitute-6.0.0
Jul 13, 2026
Merged

chore: Bump NSubstitute from 5.3.0 to 6.0.0#813
vbreuss merged 1 commit into
mainfrom
dependabot/nuget/NSubstitute-6.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 13, 2026

Copy link
Copy Markdown
Contributor

Updated NSubstitute from 5.3.0 to 6.0.0.

Release notes

Sourced from NSubstitute's releases.

6.0.0

ℹ️ No changes from Release Candidate 1.

NSubstitute v6.0.0

From RC1 notes:

  • [NEW] ArgMatchers.Matching predicate matcher as an alternative to Is(Expression<Predicate<T>>. (.NET6 and above.)
  • [UPDATE] Improved support for custom argument matchers. Arg.Is now accepts arg matchers.
  • [UPDATE][BREAKING] Update target frameworks: .NET8, .NET Standard 2.0
  • [UPDATE][BREAKING] Remove legacy obsolete API
  • [UPDATE][BREAKING] Mark as obsolete api CompatArg with pre c# 7.0 support
  • [UPDATE][BREAKING] Nullability is enabled for public api for .NET 8+ TFMs
  • [UPDATE] Migrate documentation to docfx platform and update samples to NUnit 4
  • [NEW] Added NuGet Package README file.

Full change list

6.0.0-rc.1

NSubstitute v6.0.0 Release Candidate 1

Due to the large number of changes in this release, we wanted to start with a release candidate to ensure we've correctly captured breaking changes.

  • [NEW] ArgMatchers.Matching predicate matcher as an alternative to Is(Expression<Predicate<T>>. (.NET6 and above.)
  • [UPDATE] Improved support for custom argument matchers. Arg.Is now accepts arg matchers.
  • [UPDATE][BREAKING] Update target frameworks: .NET8, .NET Standard 2.0
  • [UPDATE][BREAKING] Remove legacy obsolete API
  • [UPDATE][BREAKING] Mark as obsolete api CompatArg with pre c# 7.0 support
  • [UPDATE][BREAKING] Nullability is enabled for public api for .NET 8+ TFMs
  • [UPDATE] Migrate documentation to docfx platform and update samples to NUnit 4
  • [NEW] Added NuGet Package README file.

Full change list

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.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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 Jul 13, 2026
@github-actions

Copy link
Copy Markdown

Test Results

    24 files  ±0      24 suites  ±0   10m 49s ⏱️ + 1m 8s
 4 171 tests ±0   4 169 ✅ ±0  2 💤 ±0  0 ❌ ±0 
26 845 runs  ±0  26 841 ✅ ±0  4 💤 ±0  0 ❌ ±0 

Results for commit b24aa7d. ± Comparison against base commit 96e11b2.

@github-actions

Copy link
Copy Markdown

🚀 Benchmark Results

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.301
[Host] : .NET 10.0.9 (10.0.9, 10.0.926.27113), X64 RyuJIT x86-64-v3

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

Callback Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 335.4 ns 5.12 ns 4.27 ns 1.06 1.57 KB 1.00
Mockolate 316.7 ns 10.52 ns 9.84 ns 1.00 1.57 KB 1.00
Imposter 406.3 ns 8.04 ns 7.52 ns 1.28 2.38 KB 1.52
TUnitMocks 481.6 ns 21.04 ns 19.68 ns 1.52 1.99 KB 1.27
Moq 100,708.7 ns 1,012.12 ns 946.74 ns 318.32 8.88 KB 5.66
NSubstitute 4,572.4 ns 129.54 ns 121.17 ns 14.45 7.71 KB 4.91
FakeItEasy 5,094.1 ns 157.87 ns 147.67 ns 16.10 6.81 KB 4.33
Details

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

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

Indexer N Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 1 884.7 ns 13.38 ns 12.52 ns 0.85 3.77 KB 1.00
Mockolate 1 1.045 μs 0.0251 μs 0.0235 μs 1.00 3.77 KB 1.00
Imposter 1 1.027 μs 0.0121 μs 0.0108 μs 0.98 5.16 KB 1.37
Moq 1 224.318 μs 1.5005 μs 1.3301 μs 214.69 20.36 KB 5.41
NSubstitute 1 10.030 μs 0.0289 μs 0.0225 μs 9.60 12.78 KB 3.39
FakeItEasy 1 12.729 μs 0.0512 μs 0.0479 μs 12.18 13.63 KB 3.62
baseline* 10 2,100.9 ns 12.16 ns 11.38 ns 0.77 4.82 KB 1.00
Mockolate 10 2.730 μs 0.0103 μs 0.0092 μs 1.00 4.82 KB 1.00
Imposter 10 2.243 μs 0.0208 μs 0.0185 μs 0.82 7.97 KB 1.65
Moq 10 234.770 μs 1.5878 μs 1.4852 μs 86.00 28.75 KB 5.97
NSubstitute 10 24.079 μs 0.0740 μs 0.0618 μs 8.82 25.58 KB 5.31
FakeItEasy 10 27.127 μs 0.1370 μs 0.1281 μs 9.94 32.97 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.301
[Host] : .NET 10.0.9 (10.0.9, 10.0.926.27113), 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 521.9 ns 19.88 ns 18.59 ns 0.88 2.41 KB 1.00
Mockolate 1 594.3 ns 13.96 ns 11.66 ns 1.00 2.41 KB 1.00
Imposter 1 459.1 ns 13.46 ns 12.59 ns 0.77 3.13 KB 1.29
TUnitMocks 1 508.2 ns 17.57 ns 16.43 ns 0.86 1.64 KB 0.68
Moq 1 13,283.5 ns 48.86 ns 43.32 ns 22.36 10.27 KB 4.25
NSubstitute 1 8,061.7 ns 148.69 ns 139.08 ns 13.57 11.45 KB 4.74
FakeItEasy 1 8,819.0 ns 175.76 ns 164.41 ns 14.85 11.24 KB 4.66
baseline* 10 987.8 ns 1.55 ns 1.38 ns 0.90 2.91 KB 1.00
Mockolate 10 1,102.0 ns 14.90 ns 13.21 ns 1.00 2.91 KB 1.00
Imposter 10 1,158.6 ns 34.64 ns 32.40 ns 1.05 4.67 KB 1.61
TUnitMocks 10 1,688.7 ns 28.72 ns 26.86 ns 1.53 3.94 KB 1.35
Moq 10 20,772.8 ns 164.89 ns 154.24 ns 18.85 17.03 KB 5.86
NSubstitute 10 19,276.1 ns 61.07 ns 57.13 ns 17.49 21.08 KB 7.25
FakeItEasy 10 21,908.7 ns 86.84 ns 72.52 ns 19.88 30.81 KB 10.60
Details

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

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

Event Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 321.2 ns 5.35 ns 5.00 ns 0.99 1.7 KB 1.00
Mockolate 323.7 ns 3.66 ns 3.42 ns 1.00 1.7 KB 1.00
Imposter 1,325.5 ns 16.70 ns 15.63 ns 4.10 8.8 KB 5.17
TUnitMocks 171.4 ns 1.32 ns 1.17 ns 0.53 1.34 KB 0.79
Moq 14,099.4 ns 73.79 ns 65.42 ns 43.56 12.51 KB 7.34
NSubstitute 5,202.2 ns 24.12 ns 21.38 ns 16.07 9.05 KB 5.31
FakeItEasy 228,718.0 ns 1,524.78 ns 1,426.28 ns 706.70 15.26 KB 8.96
Details

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
Intel Xeon Platinum 8370C CPU 2.80GHz (Max: 2.83GHz), 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.301
[Host] : .NET 10.0.9 (10.0.9, 10.0.926.27113), X64 RyuJIT x86-64-v4

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

Method N Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 1 354.1 ns 4.73 ns 4.42 ns 0.97 1.93 KB 1.00
Mockolate 1 364.0 ns 3.22 ns 3.01 ns 1.00 1.93 KB 1.00
Imposter 1 537.1 ns 2.29 ns 2.03 ns 1.48 4.04 KB 2.09
TUnitMocks 1 513.8 ns 3.18 ns 2.82 ns 1.41 2.02 KB 1.04
Moq 1 137,834.3 ns 630.45 ns 589.72 ns 378.69 14.74 KB 7.64
NSubstitute 1 5,723.9 ns 75.47 ns 70.59 ns 15.73 9.12 KB 4.72
FakeItEasy 1 5,870.5 ns 82.27 ns 76.96 ns 16.13 8.06 KB 4.18
baseline* 10 621.1 ns 3.54 ns 3.14 ns 0.81 2.14 KB 1.00
Mockolate 10 767.6 ns 3.10 ns 2.75 ns 1.00 2.14 KB 1.00
Imposter 10 1,072.9 ns 7.93 ns 7.42 ns 1.40 5.52 KB 2.58
TUnitMocks 10 1,628.5 ns 7.76 ns 7.26 ns 2.12 3.73 KB 1.74
Moq 10 143,018.0 ns 609.56 ns 570.18 ns 186.31 18.64 KB 8.71
NSubstitute 10 8,391.7 ns 67.71 ns 63.34 ns 10.93 12.07 KB 5.64
FakeItEasy 10 8,919.4 ns 76.38 ns 71.44 ns 11.62 15.42 KB 7.20
Details

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

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

CreateMock Mean Error StdDev Ratio Allocated Alloc Ratio
baseline* 25.79 ns 0.143 ns 0.133 ns 1.40 160 B 1.00
Mockolate 18.43 ns 0.195 ns 0.173 ns 1.00 160 B 1.00
Imposter 298.46 ns 3.617 ns 3.206 ns 16.20 2248 B 14.05
TUnitMocks 37.75 ns 0.282 ns 0.235 ns 2.05 200 B 1.25
Moq 1,391.87 ns 15.341 ns 14.350 ns 75.53 2096 B 13.10
NSubstitute 1,918.38 ns 9.458 ns 8.384 ns 104.10 5048 B 31.55
FakeItEasy 1,936.78 ns 42.052 ns 39.335 ns 105.09 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 20b5c37 into main Jul 13, 2026
15 checks passed
@vbreuss vbreuss deleted the dependabot/nuget/NSubstitute-6.0.0 branch July 13, 2026 09:01
github-actions Bot added a commit that referenced this pull request Jul 13, 2026
github-actions Bot added a commit that referenced this pull request Jul 13, 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