Пример #1
0
 public void SetUp()
 {
     Matcher     = new CollectionOrderedConstraint().Descending;
     GoodValues  = new object[] { new string[] { "z", "y", "x" }, new string[] { "z", "x", "x" }, new int[] { 3, 2, 1 } };
     BadValues   = new object[] { new string[] { "x", "q", "z" }, new int[] { 1, 2, 3 } };
     Description = "collection ordered, descending";
 }
Пример #2
0
        protected override NUnitCtr.Constraint BuildInternalConstraint()
        {
            var ctr = new CollectionOrderedConstraint();

            if (this.reversed)
            {
                ctr = ctr.Descending;
            }
            if (Comparer != null)             //Should only happens if specific is called
            {
                ctr = ctr.Using(Comparer);
            }
            return(ctr);
        }
Пример #3
0
 protected override NUnitCtr.Constraint BuildInternalConstraint()
 {
     var ctr = new CollectionOrderedConstraint();
     if (this.reversed)
         ctr = ctr.Descending;
     if (Comparer != null) //Should only happens if specific is called
         ctr = ctr.Using(Comparer);
     return ctr;
 }
Пример #4
0
 public void SetUp()
 {
     Matcher = new CollectionOrderedConstraint().Descending;
     GoodValues = new object[] { new string[] { "z", "y", "x" }, new string[] { "z", "x", "x" }, new int[] { 3, 2, 1 } };
     BadValues = new object[] { new string[] { "x", "q", "z" }, new int[] { 1, 2, 3 } };
     Description = "collection ordered, descending";
 }