Ejemplo n.º 1
0
 public void T02_Should_compute_MagicCalculation_for_data_serie(int input, int expected)
 {
     Assert.Equal(0, SomeAlgorithm.MagicCalculation(1));
     Assert.Equal(1, SomeAlgorithm.MagicCalculation(2));
     Assert.Equal(-2, SomeAlgorithm.MagicCalculation(3));
 }
Ejemplo n.º 2
0
 public void T03_Should_throw_exception_for_negative_values(int arg)
 {
     Assert.Throws <ArgumentException>(() => SomeAlgorithm.MagicCalculation(arg));
 }
Ejemplo n.º 3
0
 public void T01_Should_compute_MagicCalculation()
 {
     Assert.Equal(0, SomeAlgorithm.MagicCalculation(1));
     Assert.Equal(1, SomeAlgorithm.MagicCalculation(2));
     Assert.Equal(-2, SomeAlgorithm.MagicCalculation(3));
 }