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