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