Example #1
0
 public void test1()
 {
     Assert.Equal(0, Collatz.Passi(1));
 }
Example #2
0
 public void testNegativo()
 {
     Assert.Throws <ArgumentException>(() => Collatz.Passi(-15));
 }
Example #3
0
 public void testZero()
 {
     Assert.Throws <ArgumentException>(() => Collatz.Passi(0));
 }
Example #4
0
 public void testGrande()
 {
     Assert.Equal(152, Collatz.Passi(1000000));
 }
Example #5
0
 public void test12()
 {
     Assert.Equal(9, Collatz.Passi(12));
 }
Example #6
0
 public void test16()
 {
     Assert.Equal(4, Collatz.Passi(16));
 }