DEV Community

Cover image for Codinators.XunitHelpers Nuget Package: Update 1
Ankur Sheel
Ankur Sheel

Posted on • Originally published at on

Codinators.XunitHelpers Nuget Package: Update 1

I created Codinators.XunitHelpers(a NuGet package) to add some useful unit testing functionality that is missing in xUnit.

This release adds support for reporting multiple assertion failures in one method in xUnit tests similar to how Nunit does it.


Install it by using the following command

dotnet add package Codinators.XunitHelpers


public void MultiAssertTest()
    var result = 2 + 2;
    AssertHelper.AssertMultiple(() => Assert.IsType<double>(result),
                                () => Assert.Equal(5, result),
                                () => Assert.Equal(4, result));


Screenshot for Multiple Assert Failure

Top comments (0)