Table of Contents

Class XmlSerializableConstraint

Namespace
NUnit.Framework.Constraints
Assembly
nunit.framework.dll

BinarySerializableConstraint tests whether an object is serializable in binary format.

public class XmlSerializableConstraint : Constraint, IConstraint, IResolveConstraint
Inheritance
XmlSerializableConstraint
Implements
Inherited Members

Constructors

XmlSerializableConstraint()

public XmlSerializableConstraint()

Properties

Description

Gets text describing a constraint

public override string Description { get; }

Property Value

string

Methods

ApplyTo<TActual>(TActual)

Test whether the constraint is satisfied by a given value

public override ConstraintResult ApplyTo<TActual>(TActual actual)

Parameters

actual TActual

The value to be tested

Returns

ConstraintResult

True for success, false for failure

Type Parameters

TActual

GetStringRepresentation()

Returns the string representation of this constraint

protected override string GetStringRepresentation()

Returns

string