Click or drag to resize
JSONConstraint Class
Constraint that compares two JSON sources with each other.
Inheritance Hierarchy
SystemObject
  Constraint
    CMS.TestsJSONConstraint

Namespace: CMS.Tests
Assembly: CMS.Tests (in CMS.Tests.dll) Version: 9.0.0
Syntax
C#
public class JSONConstraint : Constraint

The JSONConstraint type exposes the following members.

Fields
  NameDescription
Protected fieldactual (Inherited from Constraint.)
Top
Properties
  NameDescription
Public propertyAnd (Inherited from Constraint.)
Protected propertyDisplayName (Inherited from Constraint.)
Public propertyOr (Inherited from Constraint.)
Public propertyWith (Inherited from Constraint.)
Top
Methods
  NameDescription
Public methodAfter(Int32) (Inherited from Constraint.)
Public methodAfter(Int32, Int32) (Inherited from Constraint.)
Protected methodGetStringRepresentation (Inherited from Constraint.)
Public methodStatic memberIsSimilarTo(JObject)
Creates JSONConstraint which compares the test-Object with the given JObject.
Public methodStatic memberIsSimilarTo(String)
Creates JSONConstraint which compares the test-Object with the given string.
Public methodMatches(Object)
Tests whether the constraint is satisfied by a given value.
(Overrides Constraint.Matches(Object).)
Public methodMatches``1(ActualValueDelegateUMP) (Inherited from Constraint.)
Public methodMatches``1(UMP) (Inherited from Constraint.)
Public methodToString (Inherited from Constraint.)
Public methodWriteActualValueTo
Write the actual value for a failing constraint test to a MessageWriter. The default implementation simply writes the raw value of actual, leaving it to the writer to perform any formatting.
(Overrides Constraint.WriteActualValueTo(MessageWriter).)
Public methodWriteDescriptionTo
Writes the constraint description to a MessageWriter
(Overrides Constraint.WriteDescriptionTo(MessageWriter).)
Public methodWriteMessageTo (Inherited from Constraint.)
Top
See Also