示例#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>()
     {
     }));
 }