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 <object> scope) { scope.IsNull(); }
public static HashSet <T> Is <T>(this INegatableArgumentConstraintManager <HashSet <T> > that, params T[]?values) { return(values == null?that.IsNull() : that.Matches(x => x.Intersect(values).Count() == values.Length)); }
public static IEnumerable <T> Is <T>(this INegatableArgumentConstraintManager <IEnumerable <T> > that, params T[]?values) { return(values == null?that.IsNull() : that.IsSameSequenceAs(values)); }