public void WhenTheArrayIsEmptyTheSumIsZero() { int[] nums = { }; var result = ExerciseMethods.SumArray(nums); Assert.AreEqual(0, result); }
public void WhenTheArrayIsPopulatedTheSumIsCorrect() { int[] nums = { 3, 7, 1, 2, 4 }; var result = ExerciseMethods.SumArray(nums); Assert.AreEqual(17, result); }
public void WhenTheNumberIsOddTheResultIsFalse(int x) { var result = ExerciseMethods.EvenOdd(x); Assert.IsFalse(result); }