コード例 #1
0
ファイル: AExtensions.cs プロジェクト: yjpark/squidex
        public static T[] Is <T>(this INegatableArgumentConstraintManager <T[]> that, params T[] values)
        {
            if (values == null)
            {
                return(that.IsNull());
            }

            return(that.IsSameSequenceAs(values));
        }
コード例 #2
0
 protected override void CreateConstraint(INegatableArgumentConstraintManager <IEnumerable <int> > scope)
 {
     scope.IsSameSequenceAs(new[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 });
 }
コード例 #3
0
 protected override void CreateConstraint(INegatableArgumentConstraintManager <IEnumerable <string> > scope)
 {
     scope.IsSameSequenceAs("a", "b", null, "y", "z");
 }
コード例 #4
0
ファイル: AExtensions.cs プロジェクト: jrlost/squidex
 public static IEnumerable <T> Is <T>(this INegatableArgumentConstraintManager <IEnumerable <T> > that, params T[]?values)
 {
     return(values == null?that.IsNull() : that.IsSameSequenceAs(values));
 }