Exemplo n.º 1
0
        public void CompareTupleWithLessElement()
        {
            target.Add(0);
            Tuple tuple = new Tuple();
            tuple.Add(-1);
            tuple.Add(-2);

            Assert.AreEqual(-1, this.target.CompareTo(tuple));
        }
Exemplo n.º 2
0
        public void CompareTupleWithMoreElement()
        {
            target.Add(0);
            target.Add(1);
            Tuple tuple = new Tuple();
            tuple.Add(2);

            Assert.AreEqual(1, this.target.CompareTo(tuple));
        }
Exemplo n.º 3
0
        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]);
        }
Exemplo n.º 4
0
 public void SetUp()
 {
     this.target = new Tuple();
 }