Commit 1f8b39b
committed
fix(json-cppagent-tests): wrap Assert.Throws sync lambdas with (Action) cast for NUnit 4 (CS0121)
Cascade rebase of chore/nunit-4-upgrade onto master post-TrakHound#221 surfaced
four fresh CS0121 ambiguity errors in JsonConditionsArrayShapeTests
(added by TrakHound#221) where bare `() =>` lambdas passed to Assert.Throws<T>
are ambiguous between the TestDelegate and Action overloads once NUnit
is upgraded to 4.x. TestDelegate is obsolete-as-error in NUnit 4, so
apply the same (Action) cast pattern established for the campaign in
ae03e24 (AgentUuidValidationTests) at the four new sites:
Streams/JsonConditionsArrayShapeTests.cs L428, L498, L516, L5301 parent ae03e24 commit 1f8b39b
1 file changed
Lines changed: 5 additions & 5 deletions
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
| 428 | + | |
| 429 | + | |
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
| 516 | + | |
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
| 530 | + | |
531 | 531 | | |
532 | 532 | | |
533 | 533 | | |
| |||
0 commit comments