Class XmlSerializableConstraint
XmlSerializableConstraint tests whether an object is serializable in XML format.
Inherited Members
Namespace: NUnit.Framework.Constraints
Assembly: nunit.framework.dll
Syntax
public class XmlSerializableConstraint : Constraint, IConstraint, IResolveConstraint
Constructors
View SourceXmlSerializableConstraint()
Declaration
public XmlSerializableConstraint()
Properties
View SourceDescription
Gets text describing a constraint
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
View SourceApplyTo<TActual>(TActual)
Test whether the constraint is satisfied by a given value
Declaration
public override ConstraintResult ApplyTo<TActual>(TActual actual)
Parameters
Type | Name | Description |
---|---|---|
TActual | actual | The value to be tested |
Returns
Type | Description |
---|---|
ConstraintResult | True for success, false for failure |
Type Parameters
Name | Description |
---|---|
TActual |
Overrides
View SourceGetStringRepresentation()
Returns the string representation of this constraint
Declaration
protected override string GetStringRepresentation()
Returns
Type | Description |
---|---|
string |