Method ApplyTo
ApplyTo(object)
Applies GC memory constraint to the test.
Declaration
public override ConstraintResult ApplyTo(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to apply the GC constraint to. Should be a TestDelegate. |
Returns
Type | Description |
---|---|
ConstraintResult | A ConstraintResult |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Throws a ArgumentNullException if the provided object is null. |
ArgumentException | Throws a ArgumentException if the provided object is not a TestDelegate. |
ApplyTo<TActual>(ActualValueDelegate<TActual>)
Test whether the constraint is satisfied by a given reference. The default implementation simply dereferences the value but derived classes may override it to provide for delayed processing.
Declaration
public override ConstraintResult ApplyTo<TActual>(ActualValueDelegate<TActual> del)
Parameters
Type | Name | Description |
---|---|---|
ActualValueDelegate<TActual> | del | A reference to the value delegate to be tested |
Returns
Type | Description |
---|---|
ConstraintResult | A ConstraintResult |
Type Parameters
Name | Description |
---|---|
TActual | The type of the actual value delegate to be tested. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Throws a ArgumentNullException if the provided delegate is null. |