Example #1
0
 public void ItemOnThreeTuple()
 {
     var t = new Tuple<int, int, int>(-1, -2, -3);
       Assert.AreEqual(t.Item1, t.Item(0));
       Assert.AreEqual(t.Item2, t.Item(1));
       Assert.AreEqual(t.Item3, t.Item(2));
 }
Example #2
0
 public void ItemOnFourTuple()
 {
     var t = new Tuple<int, int, int, int>(-1, -2, -3, -4);
       Assert.AreEqual(t.Item1, t.Item(0));
       Assert.AreEqual(t.Item2, t.Item(1));
       Assert.AreEqual(t.Item3, t.Item(2));
       Assert.AreEqual(t.Item4, t.Item(3));
 }
Example #3
0
 public void ItemOnSevenTuple()
 {
     var t = new Tuple<int, int, int, int, int, int, int>(-1, -2, -3, -4, -5, -6, -7);
       Assert.AreEqual(t.Item1, t.Item(0));
       Assert.AreEqual(t.Item2, t.Item(1));
       Assert.AreEqual(t.Item3, t.Item(2));
       Assert.AreEqual(t.Item4, t.Item(3));
       Assert.AreEqual(t.Item5, t.Item(4));
       Assert.AreEqual(t.Item6, t.Item(5));
       Assert.AreEqual(t.Item7, t.Item(6));
 }
Example #4
0
 public void ItemOnTwoTuple()
 {
     var t = new Tuple<int, int>(-1, -2);
       Assert.AreEqual(t.Item1, t.Item(0));
       Assert.AreEqual(t.Item2, t.Item(1));
 }
Example #5
0
 public void ItemOnOneTuple()
 {
     var t = new Tuple<int>(-1);
       Assert.AreEqual(t.Item1, t.Item(0));
 }