Method ApplyTo
ApplyTo(object)
Applies GC memory constraint to the test.
선언
public override ConstraintResult ApplyTo(object obj)
파라미터
타입 | 이름 | 설명 |
---|---|---|
object | obj | An object to apply the GC constraint to. Should be a TestDelegate. |
반환
타입 | 설명 |
---|---|
ConstraintResult | A ConstraintResult |
예외
타입 | 조건 |
---|---|
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.
선언
public override ConstraintResult ApplyTo<TActual>(ActualValueDelegate<TActual> del)
파라미터
타입 | 이름 | 설명 |
---|---|---|
ActualValueDelegate<TActual> | del | A reference to the value delegate to be tested |
반환
타입 | 설명 |
---|---|
ConstraintResult | A ConstraintResult |
타입 파라미터
이름 | 설명 |
---|---|
TActual | The type of the actual value delegate to be tested. |
예외
타입 | 조건 |
---|---|
ArgumentNullException | Throws a ArgumentNullException if the provided delegate is null. |