Open cezarypiatek opened 7 years ago
xUnit is considered better than NUnit. Google at least claims that, I claim that, most of the people that I know that have comparing things the same. There are some things that are better in NUnit. But there are much more things in xUnit than in NUnit. And this things will show up. Are we going to have this discussion soon again going the oposite way?
@kmorcinek Comparing available functionality of xUnit with NUnit I cannot agree with you. Please look at available attributes for xUnit and NUnit https://xunit.github.io/docs/comparisons.html#attributes https://github.com/nunit/docs/wiki/Attributes
If you have a better source that could convince me please provide appropriate link.
Google at least claims that, I claim that
Please provide a facts that prove your thesis.
It's hard to generate test data sets with xUnit. I recommend to use NUnit test framework. For example there is a PairwiseAttribute which could significantly simplify our tests https://github.com/nunit/docs/wiki/Pairwise-Attribute Of course there are XXXData attributes in xUnit but it's very tedious to generate Cartesian product of data sets.
Example 1 (Generates 36 tests cases)
Example 2 (Generates 24 test cases)
To achieve the same result with xUnit I have to write data sets generation logic by myself.