public static Constraint UsingItemComparer(this EqualConstraint constraint) => constraint.Using(ItemComparerInstance.Value);
public static EqualConstraint UsingNoteComparer(this EqualConstraint equalConstraint) => equalConstraint.Using(NoteEqualityComparer.Instance);
/// <summary> /// Flags the constraint to use the supplied compact JSON string when performing equality. /// </summary> /// <param name="constraint">The constraint to modify.</param> /// <returns>The modified constraint.</returns> /// <example><code>Assert.That("{\"prop\"=\"value\"}", Is.EqualTo("{'prop'='value'}").AsJson())</code></example> public static EqualConstraint AsJson(this EqualConstraint constraint) { return(constraint.Using(JsonString.Comparer)); }
public static EqualConstraint UsingItemEqualityComparer(this EqualConstraint constraint) => constraint.Using(new ItemEqualityComparer());
public static EqualConstraint UsingCodeFileComparer(this EqualConstraint constraint) => constraint.Using(Comparer);
public static EqualConstraint UsingItemComparer(this EqualConstraint constraint) => constraint.Using(ItemComparer.LazyComparer);
public static EqualConstraint UsingItemComparer(this EqualConstraint equalConstraint) => equalConstraint.Using(ItemComparer.Comparer);