-
-
Notifications
You must be signed in to change notification settings - Fork 127
Comparing changes
Open a pull request
base repository: thomhurst/TUnit
base: v1.17.29
head repository: thomhurst/TUnit
compare: v1.17.36
- 7 commits
- 98 files changed
- 2 contributors
Commits on Feb 26, 2026
-
Configuration menu - View commit details
-
Copy full SHA for b14b866 - Browse repository at this point
Copy the full SHA b14b866View commit details -
chore(deps): update tunit to 1.17.29 (#5008)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Configuration menu - View commit details
-
Copy full SHA for fe98702 - Browse repository at this point
Copy the full SHA fe98702View commit details -
chore(deps): update aspire to 13.1.2 (#5010)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Configuration menu - View commit details
-
Copy full SHA for 9cad49b - Browse repository at this point
Copy the full SHA 9cad49bView commit details -
chore(deps): update dependency polyfill to 9.12.0 (#5012)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Configuration menu - View commit details
-
Copy full SHA for 780cfc6 - Browse repository at this point
Copy the full SHA 780cfc6View commit details -
chore(deps): update dependency polyfill to 9.12.0 (#5011)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Configuration menu - View commit details
-
Copy full SHA for 4790787 - Browse repository at this point
Copy the full SHA 4790787View commit details -
chore(deps): update actions/download-artifact action to v8 (#5014)
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Configuration menu - View commit details
-
Copy full SHA for 692c239 - Browse repository at this point
Copy the full SHA 692c239View commit details -
feat(mocks): concise API — inline lambdas, untyped Any(), global stat…
…ic import (#5017) * feat(mocks): generate Func<T, bool> overloads for inline lambda predicates Enable inline lambda syntax in mock setup/verification by generating additional extension method overloads where eligible Arg<T> parameters are replaced with Func<T, bool>. This sidesteps CS1660 (lambdas cannot implicitly convert to non-delegate types) while reusing the existing implicit Arg<T>(Func<T, bool>) conversion internally. For N eligible parameters, generates all 2^N - 1 overloads (capped at N=8). Eligible parameters are In/In_Readonly direction, non-ref-struct. Out and Ref parameters are excluded. * feat(mocks): concise API with untyped Any(), implicit conversions, and global static import Add untyped `Arg.Any()` returning a sentinel that implicitly converts to `Arg<T>` via `implicit operator Arg<T>(Arg)`, enabling `Any()` without type arguments. Add `implicit operator Arg<T>(Func<T, bool>)` for predicate matching. Add `global using static Arg` to TUnit.Mocks.targets so matchers (`Any()`, `Is<T>()`, `IsInRange()`, etc.) can be called without the `Arg.` prefix. Update all tests and docs to use the concise syntax. * test(mocks): add Func-typed parameter ambiguity test Verify that when a mocked interface has a Func<int, bool> parameter, the generated Func<Func<int,bool>, bool> overload doesn't conflict with the base Arg<Func<int,bool>> overload. * refactor(mocks): address review — AnyArg sentinel, reduce overloads, extract helper - Remove global AD0001 suppression from Library.props (not needed) - Refactor Arg back to static class; extract AnyArg sentinel type for untyped Any() to keep single-responsibility (factory vs sentinel) - Cap Func overload generation at 4 params (MaxFuncOverloadParams=4, max 15 overloads) separate from MaxTypedParams=8 for wrappers - Extract GetReturnTypeInfo() helper shared by EmitMemberMethodBody and EmitSingleFuncOverload to eliminate return-type logic duplication - Improve ordering test to verify both first and last setup are active
Configuration menu - View commit details
-
Copy full SHA for 1f7a70f - Browse repository at this point
Copy the full SHA 1f7a70fView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine: git diff v1.17.29...v1.17.36