Re:Stop requiring only one assertion per unit test: Multiple...
by torginus on Saturday November 05, 2022 @09:34AM
(#33481312)
Tbh, one of the differences between xUnit and nUnit, is the way generated test cases work, like specifying test cases in an xml file.
nUnit has the TestCaseSource attribute for this, while xUnit has the Fact attribute.
One of the key differences, is there are no test cases generated, nUnit tests just wont run, while xUnit will throw.
Since it's completely legal and sensible for a certain kind of test to have no entries in an xml, we needed to hack around this quirk. When I (and countless others) have mentioned this on the xunit github, the author berated us that how dare we request this.
So nUnit might be buggy, but xUnit is fundamentally unfixable.
One of the key differences, is there are no test cases generated, nUnit tests just wont run, while xUnit will throw.
Since it's completely legal and sensible for a certain kind of test to have no entries in an xml, we needed to hack around this quirk. When I (and countless others) have mentioned this on the xunit github, the author berated us that how dare we request this.
So nUnit might be buggy, but xUnit is fundamentally unfixable.