/// <summary> /// Test whether the constraint is satisfied by a given value /// </summary> /// <param name="actual">The value to be tested</param> /// <returns>True for success, false for failure</returns> public override bool Matches(object actual) { this.actual = actual; return(comparer.ObjectsEqual(expected, actual)); }
private bool ItemsEqual(object expected, object actual) { return(comparer.ObjectsEqual(expected, actual)); }
/// <summary> /// Compares two collection members for equality /// </summary> protected bool ItemsEqual(object x, object y) { return(comparer.ObjectsEqual(x, y)); }