Skip to content

chore: Bump TUnit.Engine and TUnit.Mocks - #961

Merged
mergify[bot] merged 2 commits into
mainfrom
dependabot/nuget/tunit-68d356ca39
Nov 11, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
dependabot/nuget/tunit-68d356ca39

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Updated TUnit.Engine from 1.79.0 to 1.83.0.

Release notes

Sourced from TUnit.Engine's releases.

1.83.0

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.16...v1.83.0

1.81.16

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.10...v1.81.16

1.81.10

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.5...v1.81.10

1.81.5

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.0...v1.81.5

1.81.0

What's Changed

Other Changes

1.80.0

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.79.0...v1.80.0

Commits viewable in compare view.

Updated TUnit.Mocks from 1.79.0 to 1.83.0.

Release notes

Sourced from TUnit.Mocks's releases.

1.83.0

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.16...v1.83.0

1.81.16

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.10...v1.81.16

1.81.10

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.5...v1.81.10

1.81.5

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.81.0...v1.81.5

1.81.0

What's Changed

Other Changes

1.80.0

What's Changed

Other Changes

Dependencies

Full Changelog: thomhurst/TUnit@v1.79.0...v1.80.0

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .NET code dependencies Pull requests that update a dependency file labels Nov 10, 2026
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Test Results

    44 files  ±0      44 suites  ±0   40m 51s ⏱️ + 3m 37s
 4 643 tests ±0   4 643 ✅ ±0  0 💤 ±0  0 ❌ ±0 
45 750 runs  ±0  45 750 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 9535b2c. ± Comparison against base commit 907dd03.

This pull request removes 22 and adds 16 tests. Note that renamed tests count towards both.
 x-myHeader3: baz, True)
)
Mockolate.Internal.Tests.Internals.WildcardTests ‑ ShouldSupportMultilineStrings(
Mockolate.Internal.Tests.Internals.WildcardTests ‑ ShouldSupportMultilineStrings(
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(bool Equals(object obj);
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(bool Equals(object obj);
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
Mockolate.Tests.Web.ItExtensionsTests+IsHttpContentTests+WithHeadersTests ‑ ShouldVerifyStringHeaders(x-myHeader1 : foo
Mockolate.Tests.Web.ItExtensionsTests+IsHttpContentTests+WithHeadersTests ‑ ShouldVerifyStringHeaders(x-myHeader1 : foo
…
Mockolate.Internal.Tests.Internals.WildcardTests ‑ ShouldSupportMultilineStrings(
)
Mockolate.Internal.Tests.Internals.WildcardTests ‑ ShouldSupportMultilineStrings(
)
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(bool Equals(object obj);
int GetHashCode();, public override bool Equals(object obj), public override int GetHashCode())
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(bool Equals(object obj);
int GetHashCode();, public override bool Equals(object obj), public override int GetHashCode())
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
bool Equals(object obj);, public override string ToString(), public override bool Equals(object obj))
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
bool Equals(object? obj);
int GetHashCode();, public override string ToString(), public override int GetHashCode(), public override bool Equals(object? obj))
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
int GetHashCode();, public override string ToString(), public override int GetHashCode())
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
bool Equals(object obj);, public override string ToString(), public override bool Equals(object obj))
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
bool Equals(object? obj);
int GetHashCode();, public override string ToString(), public override int GetHashCode(), public override bool Equals(object? obj))
Mockolate.SourceGenerators.Tests.MethodSetupsTests ‑ WhenImplementingObjectMethods_ShouldUseSpecialInterfaces(string ToString();
int GetHashCode();, public override string ToString(), public override int GetHashCode())
…

♻️ This comment has been updated with latest results.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

🚀 Benchmark Results

Compared to main @​ 130e803f: memory to the latest run, time to the median of the last 10 runs, as the runners differ in speed. A relative change marks when Mockolate gets more than 15% faster or slower relative to Imposter and TUnitMocks: 🔴 / 🟢 against both of them, 🔸 / 🔹 against only one.

CallbackBenchmarks

✅ No changes in memory or relative performance (1 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Callback 271.2 ns → 325.8 ns (+20%) 1,592 B → 1,592 B 0.69× → 0.62× 1.61× → 1.51×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 3.24GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3

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

Callback Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 325.8 ns 7.18 ns 6.72 ns 1.00 1592 B 1.00
Imposter 202.8 ns 1.36 ns 1.27 ns 0.62 616 B 0.39
TUnitMocks 491.9 ns 4.77 ns 4.46 ns 1.51 2056 B 1.29
Moq 103,205.3 ns 301.52 ns 251.79 ns 316.94 9064 B 5.69
NSubstitute 4,442.8 ns 20.15 ns 17.86 ns 13.64 7864 B 4.94
FakeItEasy 4,402.4 ns 29.56 ns 27.65 ns 13.52 6930 B 4.35

CompleteEventBenchmarks

Relative performance (how many times as long the other library takes as Mockolate, main → PR)

Benchmark vs Imposter vs TUnitMocks
Event 0.65× → 0.42× 🔴 +57% 0.60× → 0.35× 🔴 +71%
All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Event 201.4 ns → 359.7 ns (+79%) 1,728 B → 1,728 B 0.65× → 0.42× 🔴 +57% 0.60× → 0.35× 🔴 +71%
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V74 3.64GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

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

Event Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 359.7 ns 6.28 ns 5.87 ns 1.00 1728 B 1.00
Imposter 149.5 ns 1.92 ns 1.60 ns 0.42 512 B 0.30
TUnitMocks 126.1 ns 2.96 ns 2.63 ns 0.35 1392 B 0.81
Moq 10,699.1 ns 28.02 ns 21.87 ns 29.75 12761 B 7.38
NSubstitute 4,319.2 ns 17.70 ns 16.56 ns 12.01 9192 B 5.32
FakeItEasy 193,640.0 ns 997.26 ns 932.84 ns 538.41 15619 B 9.04

CompleteIndexerBenchmarks

✅ No changes in memory or relative performance (2 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter
Indexer (N=1) 818.4 ns → 866.0 ns (+6%) 3,832 B → 3,832 B 0.35× → 0.34×
Indexer (N=10) 2.35 μs → 2.46 μs (+5%) 4,912 B → 4,912 B 0.30× → 0.31×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 7763 3.14GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v3

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

Indexer N Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1 866.0 ns 13.15 ns 11.65 ns 1.00 3.74 KB 1.00
Imposter 1 292.9 ns 5.74 ns 5.09 ns 0.34 1.07 KB 0.29
Moq 1 226,643.0 ns 1,434.33 ns 1,271.50 ns 261.75 20.32 KB 5.43
NSubstitute 1 10,483.8 ns 83.07 ns 69.37 ns 12.11 12.78 KB 3.42
FakeItEasy 1 11,101.9 ns 93.16 ns 87.14 ns 12.82 13.27 KB 3.55
Mockolate 10 2,464.8 ns 11.30 ns 9.44 ns 1.00 4.8 KB 1.00
Imposter 10 751.9 ns 17.77 ns 16.62 ns 0.31 2.13 KB 0.44
Moq 10 239,862.2 ns 887.38 ns 786.64 ns 97.31 29.7 KB 6.19
NSubstitute 10 24,961.7 ns 159.74 ns 141.60 ns 10.13 25.58 KB 5.33
FakeItEasy 10 24,208.0 ns 115.35 ns 102.25 ns 9.82 32.47 KB 6.77

CompleteMethodBenchmarks

✅ No changes in memory or relative performance (2 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Method (N=1) 290.1 ns → 186.7 ns (-36%) 1,936 B → 1,936 B 0.52× → 0.54× 1.30× → 1.42×
Method (N=10) 531.1 ns → 454.4 ns (-14%) 2,152 B → 2,152 B 0.56× → 0.51× 2.14× → 2.05×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V45 4.27GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

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

Method N Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1 186.7 ns 4.53 ns 4.01 ns 1.00 1936 B 1.00
Imposter 1 101.6 ns 3.21 ns 2.68 ns 0.54 728 B 0.38
TUnitMocks 1 265.2 ns 7.95 ns 7.43 ns 1.42 2088 B 1.08
Moq 1 57,397.5 ns 1,051.33 ns 820.81 ns 307.53 15207 B 7.85
NSubstitute 1 3,058.3 ns 59.76 ns 52.97 ns 16.39 9320 B 4.81
FakeItEasy 1 2,942.8 ns 114.29 ns 106.91 ns 15.77 8160 B 4.21
Mockolate 10 454.4 ns 11.12 ns 10.40 ns 1.00 2152 B 1.00
Imposter 10 232.0 ns 2.71 ns 2.26 ns 0.51 1088 B 0.51
TUnitMocks 10 929.8 ns 17.62 ns 15.62 ns 2.05 3840 B 1.78
Moq 10 56,760.1 ns 1,616.58 ns 1,433.06 ns 124.98 19193 B 8.92
NSubstitute 10 4,384.2 ns 211.50 ns 197.84 ns 9.65 12344 B 5.74
FakeItEasy 10 4,785.8 ns 135.96 ns 127.18 ns 10.54 16394 B 7.62

CompletePropertyBenchmarks

✅ No changes in memory or relative performance (2 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
Property (N=1) 499.8 ns → 656.3 ns (+31%) 2,432 B → 2,432 B 0.33× → 0.33× 0.85× → 0.83×
Property (N=10) 999.3 ns → 1.37 μs (+37%) 2,936 B → 2,936 B 0.33× → 0.33× 1.56× → 1.45×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
Intel Xeon Platinum 8370C CPU 2.80GHz (Max: 3.39GHz), 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

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

Property N Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 1 656.3 ns 12.47 ns 11.67 ns 1.00 2432 B 1.00
Imposter 1 217.2 ns 3.39 ns 3.17 ns 0.33 672 B 0.28
TUnitMocks 1 545.8 ns 11.41 ns 10.11 ns 0.83 1696 B 0.70
Moq 1 10,763.6 ns 52.74 ns 49.33 ns 16.40 10697 B 4.40
NSubstitute 1 7,398.4 ns 33.53 ns 29.72 ns 11.28 11664 B 4.80
FakeItEasy 1 7,876.8 ns 115.75 ns 102.61 ns 12.01 11220 B 4.61
Mockolate 10 1,366.1 ns 8.87 ns 8.29 ns 1.00 2936 B 1.00
Imposter 10 448.5 ns 1.83 ns 1.62 ns 0.33 960 B 0.33
TUnitMocks 10 1,985.0 ns 15.54 ns 12.13 ns 1.45 4048 B 1.38
Moq 10 17,209.4 ns 43.93 ns 41.09 ns 12.60 18633 B 6.35
NSubstitute 10 16,458.0 ns 127.45 ns 112.99 ns 12.05 21529 B 7.33
FakeItEasy 10 18,750.6 ns 141.70 ns 132.54 ns 13.73 30799 B 10.49

MockCreationBenchmarks

✅ No changes in memory or relative performance (1 benchmarks)

All benchmarks compared to main
Benchmark Time Memory vs Imposter vs TUnitMocks
CreateMock 16.4 ns → 10.5 ns (-36%) 160 B → 160 B 5.55× → 5.87× 1.64× → 1.67×
Raw results
BenchmarkDotNet v0.15.8, Linux Ubuntu 26.04.1 LTS (Resolute Raccoon)
AMD EPYC 9V45 4.11GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 11.0.100
  [Host] : .NET 11.0.0 (11.0.0, 11.0.26.53018), X64 RyuJIT x86-64-v4

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

CreateMock Mean Error StdDev Ratio Allocated Alloc Ratio
Mockolate 10.48 ns 0.139 ns 0.116 ns 1.00 160 B 1.00
Imposter 61.52 ns 2.132 ns 1.890 ns 5.87 504 B 3.15
TUnitMocks 17.55 ns 0.152 ns 0.135 ns 1.67 216 B 1.35
Moq 833.57 ns 14.827 ns 13.144 ns 79.52 2088 B 13.05
NSubstitute 1,108.40 ns 26.993 ns 25.249 ns 105.74 5032 B 31.45
FakeItEasy 947.05 ns 21.013 ns 19.655 ns 90.35 2755 B 17.22

Bumps TUnit.Engine from 1.79.0 to 1.83.0
Bumps TUnit.Mocks from 1.79.0 to 1.83.0

---
updated-dependencies:
- dependency-name: TUnit.Engine
  dependency-version: 1.83.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tunit
- dependency-name: TUnit.Mocks
  dependency-version: 1.83.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: tunit
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore: Bump the tunit group with 2 updates chore: Bump TUnit.Engine and TUnit.Mocks Nov 10, 2026
@dependabot
dependabot Bot force-pushed the dependabot/nuget/tunit-68d356ca39 branch from 09ec1f2 to f929a5b Compare November 10, 2026 23:35
TUnit 1.83 no longer ships a net8.0 build, so net8.0 uses its netstandard2.0 build, which references Microsoft.Bcl.AsyncInterfaces without declaring the package; the test host then fails to start.
@sonarqubecloud

Copy link
Copy Markdown

@mergify
mergify Bot merged commit 344f7cd into main Nov 11, 2026
22 checks passed
@mergify
mergify Bot deleted the dependabot/nuget/tunit-68d356ca39 branch November 11, 2026 15:12
github-actions Bot added a commit that referenced this pull request Nov 11, 2026
github-actions Bot added a commit that referenced this pull request Nov 11, 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