Constructor NoNewInstancesAttribute
NoNewInstancesAttribute()
Initializes a new instance of NoNewInstancesAttribute.
Declaration
public NoNewInstancesAttribute()
Remarks
For more information see AssertionsDefinition.NoNewInstances() and AssertionAttribute.
NoNewInstancesAttribute(Type)
Initializes a new instance of NoNewInstancesAttribute with the type of the instances that should be checked when the target method has been executed.
Declaration
public NoNewInstancesAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | System.Type of the instances that should be checked. |
Remarks
For more information see AssertionsDefinition.NoNewInstances(Type, Boolean) and AssertionAttribute.
NoNewInstancesAttribute(Type[])
Initializes a new instance of NoNewInstancesAttribute with the types of the instances that should be checked when the target method has been executed.
Declaration
public NoNewInstancesAttribute(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.NoNewInstances(Type[], Boolean) and AssertionAttribute.
NoNewInstancesAttribute(String)
Initializes a new instance of NoNewInstancesAttribute with the type name of the instances that should be checked when the target method has been executed.
Declaration
public NoNewInstancesAttribute(string typeName)
Parameters
Type | Name | Description |
---|---|---|
System.String | typeName | Type name of the instances that should be checked. |
Remarks
For more information see AssertionsDefinition.NoNewInstances(String, Boolean) and AssertionAttribute.
NoNewInstancesAttribute(String[])
Initializes a new instance of NoNewInstancesAttribute with the type of the instances that should be checked when the target method has been executed.
Declaration
public NoNewInstancesAttribute(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.NoNewInstances(String[], Boolean) and AssertionAttribute.