Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: thomhurst/TUnit
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.40.0
Choose a base ref
...
head repository: thomhurst/TUnit
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.40.5
Choose a head ref
  • 5 commits
  • 29 files changed
  • 2 contributors

Commits on Apr 26, 2026

  1. chore(deps): update tunit to 1.40.0 (#5762)

    Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
    thomhurst and renovate-bot authored Apr 26, 2026
    Configuration menu
    Copy the full SHA
    b2344b4 View commit details
    Browse the repository at this point in the history
  2. docs: add AGENTS guidance

    thomhurst committed Apr 26, 2026
    Configuration menu
    Copy the full SHA
    d649619 View commit details
    Browse the repository at this point in the history
  3. Fix reflection property injection reuse (#5763)

    * fix(engine): preserve injected property values
    
    Keep SourceGeneratedViewer output opt-in so normal builds do not fail on stale generated files.
    
    Closes #5753
    
    * fix(engine): tighten property injection guard
    
    Share the already-populated check between source-generated and reflection paths, and only skip reference-type properties.
    
    Remove the unrelated SDK roll-forward change from this PR.
    
    * test(engine): polish issue 5753 coverage
    
    Mark the value-type regression for engine-test sweeps and use the synchronous data-source abstraction.
    thomhurst authored Apr 26, 2026
    Configuration menu
    Copy the full SHA
    62e0bab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    104228e View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2026

  1. fix(assertions): gate IsEqualTo<TValue, TOther> overload to net9+ (#5765

    ) (#5767)
    
    * fix(assertions): gate IsEqualTo<TValue, TOther> overload to net9+ (#5765)
    
    The IsEqualTo<TValue, TOther> / IsNotEqualTo<TValue, TOther> overloads added
    in 1.40.0 (#5751) rely on [OverloadResolutionPriority(-1)] to lose to the
    source-generated single-generic overload when both apply. That attribute is
    only honored by C# 13+ and only present in System.Runtime.CompilerServices
    on .NET 9+. On the net8.0 / netstandard2.0 builds of TUnit.Assertions,
    Polyfill silently drops the attribute and every same-type IsEqualTo call
    becomes ambiguous (CS0121), breaking effectively every existing test suite.
    
    Gating the new overloads behind #if NET9_0_OR_GREATER means net8.0 /
    netstandard2.0 consumers fall back to the original well-defined overload
    with no contest. net9.0+ consumers using a modern SDK keep the wrapper
    Value Object support introduced in #5720.
    
    Public API snapshots for net8.0 and netstandard2.0 (Net4_7) updated to
    drop the gated overloads. Issue5720Tests gated to match. Added Issue5765
    regression test covering same-type IsEqualTo across enum/primitive/record.
    
    * chore: trim verbose comments and test names from #5765 fix
    
    Per simplify review:
    - Shrunk the gate-rationale comment in ImplicitConversionEqualityExtensions
      from 9 lines to 4 — keep the WHY, drop the narration.
    - Replaced the duplicate gate-rationale block in Issue5720Tests with a
      one-line pointer to the source file.
    - Dropped the redundant XML <summary> on Issue5765Tests (sibling
      IssueNNNNTests files don't carry one) and the "_Compiles_And_Passes"
      suffix on each test name.
    thomhurst authored Apr 27, 2026
    Configuration menu
    Copy the full SHA
    36cd04a View commit details
    Browse the repository at this point in the history
Loading