Skip to content

Latest commit

 

History

History
32 lines (30 loc) · 2.9 KB

File metadata and controls

32 lines (30 loc) · 2.9 KB

Rules

ID Category Cause
NS1000 Non-substitutable member Substituting for non-virtual member of a class.
NS1001 Non-substitutable member Checking received calls for non-virtual member of a class.
NS1002 Non-substitutable member Substituting for non-virtual member of a class.
NS1003 Non-substitutable member Substituting for an internal member of a class without proxies having visibility into internal members.
NS1004 Non-substitutable member Argument matcher used with a non-virtual member of a class.
NS1005 Non-substitutable member Checking call order for non-virtual member of a class.
NS2000 Substitute creation Substitute.ForPartsOf used with interface or delegate.
NS2001 Substitute creation NSubstitute used with class which does not expose public or protected constructor.
NS2002 Substitute creation NSubstitute used with class which does not expose parameterless constructor.
NS2003 Substitute creation NSubstitute used with internal type.
NS2004 Substitute creation Substituting for type by passing wrong constructor arguments.
NS2005 Substitute creation Substituting for multiple classes.
NS2006 Substitute creation Substituting for interface and passing arguments.
NS2007 Substitute creation Substituting for delegate and passing arguments.
NS3000 Argument specification Accessing call arguments out of the bounds of method arguments.
NS3001 Argument specification Casting call argument at given position to different type than type specified in a method.
NS3002 Argument specification Accessing call argument by type which is not present in invocation.
NS3003 Argument specification Accessing call argument by type which is used multiple times in invocation.
NS3004 Argument specification Assigning call argument with type which is not the same as method argument type.
NS3005 Argument specification Assigning call argument which is not ref nor out argument.
NS3006 Argument specification Conflicting assignments to out/ref arguments.
NS4000 Call configuration Calling substitute from within Returns block.
NS5000 Usage Checking received calls without specifying member.
NS5001 Usage Usage of received-like method in Received.InOrder callback.
NS5002 Usage Usage of async callback in Received.InOrder method.
NS5003 Usage Sync Throws used in async method.
NS5004 Usage Argument matcher used with WithAnyArgs. This matcher may not be executed.