Esempio n. 1
0
 public void SamoTrojke()
 {
     int[] tab = new int[] { 3, 33, 33, 3333, 3, 333 };
     BrezTrojk.Krajsaj(ref tab);
     int[] resitev = new int[0];
     CollectionAssert.AreEqual(tab, resitev);
 }
Esempio n. 2
0
 public void PrazenVnos()
 {
     int[] tab = new int[0];
     BrezTrojk.Krajsaj(ref tab);
     int[] resitev = new int[0];
     CollectionAssert.AreEqual(tab, resitev);
 }
Esempio n. 3
0
 public void NicTrojk()
 {
     int[] tab = new int[] { 5, 6, 9, 22, 2 };
     BrezTrojk.Krajsaj(ref tab);
     int[] resitev = new int[] { 5, 6, 9, 22, 2 };
     CollectionAssert.AreEqual(tab, resitev);
 }
Esempio n. 4
0
 public void PravilenVnos()
 {
     int[] tab = new int[] { 5, 33, 5123, 22, 3, 433 };
     BrezTrojk.Krajsaj(ref tab);
     int[] resitev = new int[] { 5, 512, 22, 4 };
     CollectionAssert.AreEqual(tab, resitev);
 }