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

added by DotNetKicks
1/6/2020 3:51:17 PM

237 Views

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. Don't forget: there's a sample project on GitHub that you might want to use to following along with this post.


0 comments