Class NoInstancesAttribute
Checks that no instances of the specified types exists after the target method has been executed.
Inherited Members
Namespace: SciTech.NetMemProfiler
Assembly: SciTech.MemProfilerApi.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class NoInstancesAttribute : AssertionAttribute
Remarks
This attribute can be applied to methods to define that no instances of the specified types should exist after the method has been executed. For more information see AssertionsDefinition.NoInstances(Type[], Boolean) and AssertionAttribute.
Constructors
Name | Description |
---|---|
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. |
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. |
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. |
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. |