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.17.20
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.17.25
Choose a head ref
  • 5 commits
  • 22 files changed
  • 3 contributors

Commits on Feb 25, 2026

  1. chore(deps): update tunit to 1.17.20 (#5002)

    Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
    thomhurst and renovate-bot authored Feb 25, 2026
    Configuration menu
    Copy the full SHA
    d65e341 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fa2aed7 View commit details
    Browse the repository at this point in the history
  3. Remove some redundant immutable array allocation (#4988)

    * remove some redundant ImmutableArray allocation
    
    * remove some redundant ImmutableArray allocation
    SimonCropp authored Feb 25, 2026
    Configuration menu
    Copy the full SHA
    3733777 View commit details
    Browse the repository at this point in the history
  4. feat(mocks): add RefStructArg<T> for ref struct parameter visibility …

    …in setup/verify API (#5003)
    
    * feat(mocks): add non-generic AnyMatcher for ref struct arg positions
    
    * feat(mocks): add RefStructArg<T> with allows ref struct for net9.0+
    
    * feat(mocks): source gen emits RefStructArg<T> with #if NET9_0_OR_GREATER blocks
    
    * test(mocks): update ref struct snapshot for RefStructArg<T> support
    
    * test(mocks): add RefStructArg<T> runtime tests for net9.0+
    
    * refactor(mocks): address code review feedback on RefStructArg<T> PR
    
    - Extract EmitArgsArrayVariable helper in MockImplBuilder to deduplicate
      3 identical #if NET9_0_OR_GREATER args array blocks
    - Move HasRefStructParams to computed property on MockMemberModel
      (derived from Parameters, excluded from equality)
    - Merge 3 pairs of GenerateTyped*Overload methods and 2 BuildCastArgs
      overloads into single methods with optional allNonOutParams parameter
    - Fix O(n^2) IndexOf in BuildCastArgs by pre-building a dictionary
    - Add net9.0+ equivalents of disabled tests using RefStructArg<T>.Any
    - Add XML remarks to RefStructArg<T> documenting limitations
    
    * docs(mocks): document RefStructArg<T> in argument matchers page
    thomhurst authored Feb 25, 2026
    Configuration menu
    Copy the full SHA
    8762715 View commit details
    Browse the repository at this point in the history
  5. use strong typed Enum.Parse (#4986)

    * use strong typed Enum.Parse
    
    * Refactor hook level parsing into helper
    
    Replace repeated Enum.Parse and string.Split logic with a new ParseHookLevel helper. The new method uses AsSpan and LastIndexOf to extract the substring after the last dot and then parses it to HookLevel, reducing allocations and centralizing parsing logic across attribute handlers.
    
    * Simplify IsClassConstructorAttribute signature
    
    Remove the Compilation parameter from IsClassConstructorAttribute and update callers (e.g., ClassParametersAnalyzer) to call the simpler overload. Also remove the now-unused GetHookType helper from AttributeExtensions to clean up dead code and reduce API surface.
    SimonCropp authored Feb 25, 2026
    Configuration menu
    Copy the full SHA
    4a07150 View commit details
    Browse the repository at this point in the history
Loading