Class BinarySerializableConstraint
- Namespace
- NUnit.Framework.Constraints
- Assembly
- nunit.framework.dll
BinarySerializableConstraint tests whether an object is serializable in binary format.
public class BinarySerializableConstraint : Constraint, IConstraint, IResolveConstraint
- Inheritance
-
BinarySerializableConstraint
- Implements
- Inherited Members
Constructors
BinarySerializableConstraint()
public BinarySerializableConstraint()
Properties
Description
The Description of what this constraint tests, for use in messages and in the ConstraintResult.
public override string Description { get; }
Property Value
Methods
ApplyTo<TActual>(TActual)
Test whether the constraint is satisfied by a given value
public override ConstraintResult ApplyTo<TActual>(TActual actual)
Parameters
actual
TActualThe value to be tested
Returns
- ConstraintResult
True for success, false for failure
Type Parameters
TActual
GetStringRepresentation()
Returns the string representation
protected override string GetStringRepresentation()