public void OnlyEven() { int expected = 42; List <int> onlyEven = new List <int> { 40, 2 }; int actual = NumberAdder.SumOfEvenNumbers(onlyEven); Assert.AreEqual(expected, actual); }
public void OnlyUneven() { int expected = 0; List <int> onlyOne = new List <int> { 1 }; int actual = NumberAdder.SumOfEvenNumbers(onlyOne); Assert.AreEqual(expected, actual); }
public void NullListSumOfEvenNumbers() { int actual = NumberAdder.SumOfEvenNumbers(null); Assert.Fail(); }