SameAsConstraint public class SameAsConstraint : Constraint SameAsConstraint tests whether an object is identical to the object passed to its constructor Documentation Code public SameAsConstraint(object expected) Initializes a new instance of the SameAsConstraint class.