Constructor NoInstancesAttribute
NoInstancesAttribute(Type)
Initializes a new instance of NoInstancesAttribute with the type of the instances that should be checked after the target method has been executed.
Declaration
public NoInstancesAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | System.Type of the instances that should be checked. |
Remarks
For more information see AssertionsDefinition.NoInstances(Type, Boolean) and AssertionAttribute.
NoInstancesAttribute(Type[])
Initializes a new instance of NoInstancesAttribute with the types of the instances that should be checked after the target method has been executed.
Declaration
public NoInstancesAttribute(Type[] types)
Parameters
Type | Name | Description |
---|---|---|
System.Type[] | types | An array containing the System.Types of the instances that should be checked. |
Remarks
For more information see AssertionsDefinition.NoInstances(Type[], Boolean) and AssertionAttribute.
NoInstancesAttribute(String)
Initializes a new instance of NoInstancesAttribute with the type name of the instances that should be checked after the target method has been executed.
Declaration
public NoInstancesAttribute(string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Type name of the instances that should be checked. |
Remarks
For more information see AssertionsDefinition.NoInstances(String, Boolean) and AssertionAttribute.
NoInstancesAttribute(String[])
Initializes a new instance of NoInstancesAttribute with the type of the instances that should be checked after the target method has been executed.
Declaration
public NoInstancesAttribute(string[] typeNames)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | typeNames | An array containing the type names of the instances that should be checked. |
Remarks
For more information see AssertionsDefinition.NoInstances(String[], Boolean) and AssertionAttribute.