Exemple #1
0
 public void ListWithTwoElement()
 {
     Assert.AreEqual(7, MySum.Sum(new List <int>()
     {
         1, 6
     }));
 }
Exemple #2
0
 public void ListWithNegative()
 {
     Assert.AreEqual(8, MySum.Sum(new List <int>()
     {
         -1, 9
     }));
 }
Exemple #3
0
 public void ListWithOneElement()
 {
     Assert.AreEqual(7, MySum.Sum(new List <int>()
     {
         7
     }));
 }
Exemple #4
0
 public void Null()
 {
     Assert.AreEqual(0, MySum.Sum(null));
 }
Exemple #5
0
 public void EmptyList()
 {
     Assert.AreEqual(0, MySum.Sum(new List <int>()
     {
     }));
 }