예제 #1
0
 public static Constraint UsingItemComparer(this EqualConstraint constraint)
 => constraint.Using(ItemComparerInstance.Value);
예제 #2
0
 public static EqualConstraint UsingNoteComparer(this EqualConstraint equalConstraint)
 => equalConstraint.Using(NoteEqualityComparer.Instance);
예제 #3
0
 /// <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);
예제 #7
0
 public static EqualConstraint UsingItemComparer(this EqualConstraint equalConstraint)
 => equalConstraint.Using(ItemComparer.Comparer);