Class DefaultConstraint
Tests that the actual value is default value for type.
Inheritance
DefaultConstraint
Assembly: nunit.framework.dll
Syntax
public class DefaultConstraint : Constraint, IConstraint, IResolveConstraint
Constructors
View Source
DefaultConstraint()
Declaration
public DefaultConstraint()
Properties
View Source
Description
The Description of what this constraint tests, for
use in messages and in the ConstraintResult.
Declaration
public override string Description { get; }
Property Value
Overrides
Methods
View Source
ApplyTo<TActual>(TActual)
Applies the constraint to an actual value, returning a ConstraintResult.
Declaration
public override ConstraintResult ApplyTo<TActual>(TActual actual)
Parameters
Type |
Name |
Description |
TActual |
actual |
|
Returns
Type Parameters
Overrides
Implements