Community

Using XUnit [Theory] and [InlineData] to Test C# Extension Methods

(Matthew Jones) In this final part of my unit testing series, we’re going to take a single extension method and show how we can use XUnit’s [Theory] and [InlineData] attributes to quickly write a bunch of tests for that method.