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"; }
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); }
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; }
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"; }