I recently started using XUnit. I’m still discovering what is possible using this unit test framework.
XUnit has built-in support for parameterized unit tests through the [Theory] and [InlineData] attributes. Nothing special there and similar to what other unit testing frameworks have to offer. But what makes this really nice in XUnit is that when you install the XUnit NuGet package, you get some Roslyn analyzers installed as well.
These analyzers will validate your parameterized unit tests and return errors when the [InlineData] parameters match don’t match method's parameters: