Re:Stop requiring only one assertion per unit test: Multiple...
by torginus on Saturday November 05, 2022 @08:49AM
(#33480913)
Nah, it was some corporate project. But if you are interested, I could rewrite it. It would be a fun weekend project.
[ Parent
| on HN ]
Re:Stop requiring only one assertion per unit test: Multiple...
by mattmanser on Saturday November 05, 2022 @09:27AM
(#33481252)
It's also worth figuring out for yourself though! They're suprisingly easy to use (look up Expression<>).
It's incredibly useful once you know how, and encourages you to stop using reflection, passing magic strings as arguments, or having to use nameof().