GCast 112: Passing parameters to xUnit.net tests with the InlineData attribute [GCAST 112 ]

added by DotNetKicks
6/25/2021 10:46:19 AM

300 Views

GCast 112: Passing parameters to xUnit.net tests with the InlineData attribute [GCAST 112 ] If you have multiple unit tests with redundant code, it may make sense to create a single test and pass parameters to it. You can do this using the [InlineData] attribute of xUnit.net.


0 comments