News for hackers. Stuff that matters.
Re:Stop requiring only one assertion per unit test: Multiple... by HereBeBeasties on Saturday November 05, 2022 @09:36AM (#33481337)
I bet if it were in monospace and you were reading code in context rather than on HN you'd have noticed.

That said, NUnit has much better syntax for this, where you put parallel/multiple assertions like this in an explicit block together: https://docs.nunit.org/articles/nunit/writing-tests/assertio...

Much less boilerplate duplication in the actual test framework, too.

Re:Stop requiring only one assertion per unit test: Multiple... by masklinn on Saturday November 05, 2022 @09:45AM (#33481416)
> I bet if it were in monospace

It is.

> and you were reading code in context rather than on HN you'd have noticed.

(X) doubt