Commit a78374e
fix: pass empty array to params parameter when [Arguments] has no values (#4572)
When [Arguments] is used with no arguments and the test method has a
params parameter, the parameter now correctly receives an empty array
instead of null. This matches standard C# behavior where calling a
method with params and no arguments passes an empty array.
Fixes #4561
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 34a94d2 commit a78374e
File tree
2 files changed
+16
-1
lines changed- TUnit.Core/Attributes/TestData
- TUnit.TestProject
2 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
47 | 58 | | |
48 | 59 | | |
49 | 60 | | |
| |||
0 commit comments