TheAlgorithms / C-Sharp

All algorithms implemented in C#.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace NUnit with xUnit testing framework

kaydotdev opened this issue · comments

From my perspective, NUnit has a lack of features to write unit tests with complex data on input. xUnit has attributes like MemberData, ClassData e.t.c. to make this task easier. Also, this framework provides a wider range of assertions and a more flexible way to create data generators for testing.

NUnit has TestCaseSource, which allows to do the same things as MemberData and ClassData in xUnit. As for assertions, IMO it'd be nice to make use of Fluent Assertions because they are way better than both NUnit and xUnit.

Yep, just figured out about TestCaseSource, thanks for letting me know! Good idea about Fluent Assertions, I'll use it in the new algorithm PR 😀