public void CompareTupleWithLessElement() { target.Add(0); Tuple tuple = new Tuple(); tuple.Add(-1); tuple.Add(-2); Assert.AreEqual(-1, this.target.CompareTo(tuple)); }
public void CompareTupleWithGreedy() { target.Add(0); target.Add(1); Tuple tuple = new Tuple(); tuple.Add(0); tuple.Add(0); Assert.AreEqual(1, this.target.CompareTo(tuple)); }
public void ConcatTwoTuples() { ITuple tuple2 = new Tuple(); tuple2.Add("tuple2"); this.target.Add("target"); this.target.Concat(tuple2); CollectionAssert.AreCountEqual(2, target); Assert.AreEqual("target", target[0]); Assert.AreEqual("tuple2", target[1]); }
public void CompareTupleWithNull() { target.Add(0); Assert.AreEqual(-1, this.target.CompareTo(null)); }