public static T[] Is <T>(this INegatableArgumentConstraintManager <T[]> that, params T[] values) { if (values == null) { return(that.IsNull()); } return(that.IsSameSequenceAs(values)); }
protected override void CreateConstraint(INegatableArgumentConstraintManager <IEnumerable <int> > scope) { scope.IsSameSequenceAs(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 }); }
protected override void CreateConstraint(INegatableArgumentConstraintManager <IEnumerable <string> > scope) { scope.IsSameSequenceAs("a", "b", null, "y", "z"); }
public static IEnumerable <T> Is <T>(this INegatableArgumentConstraintManager <IEnumerable <T> > that, params T[]?values) { return(values == null?that.IsNull() : that.IsSameSequenceAs(values)); }