Is THIS The Best Way To Parameterize Tests? - xUnit Theory Data
August 12, 2024
• 710 views
testingtesttestssoftware testingC# testingxunitquality assurancexunit parameterized testsnet corexunit attributesxunit factxunit theoryxunit vs nunitacceptance testsunit testingmstest vs nunit vs xunitxunit vs mstestdotnettheory datatest driven developmentsoftware testing pyramidcode coverageautomated testdotnet xunittests in C#how to use xunitxunit tutorialxunit tutorial c# for beginnersxunit tutorial c#tddc#csharp
xUnit is a popular testing framework that we can use to test our dotnet applications.
But it's got a smell that I've been putting up with for years.
The parameterized test data sucks. We lose all of our type safety when creating generators for object arrays! Yuck!
But what if there was a better way? What if we could ensure type safety with parameterized tests in xUnit?
Let's check out Theory Data!
