Esempio n. 1
0
 public void boardingGate()
 {
     CollectionAssert.AreEqual(new List <int>()
     {
         1, 8, 2, 4, 13, 11, 14, 22, 30, 21
     },
                               exercises.BoardingGate(new List <int>()
     {
         1, 13, 43, 22, 8, 11, 30, 2, 4, 14, 21
     }));
     CollectionAssert.AreEqual(new List <int>()
     {
         9, 1, 5, 19, 11, 15, 29, 21, 25
     }, exercises.BoardingGate(new List <int>()
     {
         29, 19, 9, 21, 11, 1, 0, 25, 15, 5, 31
     }));
     CollectionAssert.AreEqual(new List <int>()
     {
         7, 6, 17, 16, 27, 26
     }, exercises.BoardingGate(new List <int>()
     {
         0, -1, 44, 31, 17, 7, 27, 16, 26, 6
     }));
 }