xUnit1000
|
Test classes must be public |
Error |
Usage |
xUnit1001
|
Fact methods cannot have parameters |
Error |
Usage |
xUnit1002
|
Test methods cannot have multiple Fact or Theory attributes |
Error |
Usage |
xUnit1003
|
Theory methods must have test data |
Error |
Usage |
xUnit1004
|
Test methods should not be skipped |
Info |
Usage |
xUnit1005
|
Fact methods should not have test data |
Warning |
Usage |
xUnit1006
|
Theory methods should have parameters |
Warning |
Usage |
xUnit1007
|
ClassData must point at a valid class |
Error |
Usage |
xUnit1008
|
Test data attribute should only be used on a Theory |
Warning |
Usage |
xUnit1009
|
InlineData values must match the number of method parameters |
Error |
Usage |
xUnit1010
|
The value is not convertible to the method parameter type |
Error |
Usage |
xUnit1011
|
There is no matching method parameter |
Error |
Usage |
xUnit1012
|
Null should not be used for value type parameters |
Warning |
Usage |
xUnit1013
|
Public method should be marked as test |
Warning |
Usage |
xUnit1014
|
MemberData should use nameof operator for member name |
Warning |
Usage |
xUnit1015
|
MemberData must reference an existing member |
Error |
Usage |
xUnit1016
|
MemberData must reference a public member |
Error |
Usage |
xUnit1017
|
MemberData must reference a static member |
Error |
Usage |
xUnit1018
|
MemberData must reference a valid member kind |
Error |
Usage |
xUnit1019
|
MemberData must reference a member providing a valid data type |
Error |
Usage |
xUnit1020
|
MemberData must reference a property with a getter |
Error |
Usage |
xUnit1021
|
MemberData should not have parameters if the referenced member is not a method |
Warning |
Usage |
xUnit1022
|
Theory methods cannot have a parameter array |
Error |
Usage |
xUnit1023
|
Theory methods cannot have default parameter values |
Error |
Usage |
xUnit1024
|
Test methods cannot have overloads |
Error |
Usage |
xUnit1025
|
InlineData should be unique within the Theory it belongs to |
Warning |
Usage |
xUnit1026
|
Theory methods should use all of their parameters |
Warning |
Usage |
xUnit2000
|
Constants and literals should be the expected argument |
Warning |
Assertions |
xUnit2001
|
Do not use invalid equality check |
Hidden |
Assertions |
xUnit2002
|
Do not use null check on value type |
Warning |
Assertions |
xUnit2003
|
Do not use equality check to test for null value |
Warning |
Assertions |
xUnit2004
|
Do not use equality check to test for boolean conditions |
Warning |
Assertions |
xUnit2005
|
Do not use identity check on value type |
Warning |
Assertions |
xUnit2006
|
Do not use invalid string equality check |
Warning |
Assertions |
xUnit2007
|
Do not use typeof expression to check the type |
Warning |
Assertions |
xUnit2008
|
Do not use boolean check to match on regular expressions |
Warning |
Assertions |
xUnit2009
|
Do not use boolean check to check for substrings |
Warning |
Assertions |
xUnit2010
|
Do not use boolean check to check for string equality |
Warning |
Assertions |
xUnit2011
|
Do not use empty collection check |
Warning |
Assertions |
xUnit2012
|
Do not use Enumerable.Any() to check if a value exists in a collection |
Warning |
Assertions |
xUnit2013
|
Do not use equality check to check for collection size. |
Warning |
Assertions |
xUnit2014
|
Do not use throws check to check for asynchronously thrown exception |
Error |
Assertions |
xUnit2015
|
Do not use typeof expression to check the exception type |
Warning |
Assertions |
xUnit2016
|
Keep precision in the allowed range when asserting equality of doubles or decimals. |
Error |
Assertions |
xUnit2017
|
Do not use Contains() to check if a value exists in a collection |
Warning |
Assertions |
xUnit2018
|
Do not compare an object's exact type to an abstract class or interface |
Warning |
Assertions |
xUnit2019
|
Do not use obsolete throws check to check for asynchronously thrown exception |
Hidden |
Assertions |
xUnit3000
|
Test case classes must derive directly or indirectly from Xunit.LongLivedMarshalByRefObject |
Error |
Extensibility |
xUnit3001
|
Classes that implement Xunit.Abstractions.IXunitSerializable must have a public parameterless constructor |
Error |
Extensibility |