Skip to content

DjvuTheory displays test names for xUnit test cases containing custom objects in parameters

License

Notifications You must be signed in to change notification settings

mysteryx93/XunitDjvuTheory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XunitDjvuTheory

DjvuTheory displays test names for xUnit test cases containing custom objects in parameters

Problem with xUnit: when test cases use parameter types that are not serializable, all test cases will appear as a single item in the test explorer.

Solution: Simply use [DjvuTheory] instead of [Theory] for those test cases!

The problem and solution are described here.

I take no credit for the code, I have simply copy/pasted this code into a dedicated project to make it easily available on NuGet for every project.

Project also contains SkipOnTargetFrameworkAttribute allowing to run platform-specific tests.

Code is available under MIT license.

About

DjvuTheory displays test names for xUnit test cases containing custom objects in parameters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages