public void SumsAllTheElementsOfTheArray_ArraySum_ReturnsTheTotalOfTheElements() { int result = _algorithm.Sum(new[] { 1, 2, 4, 5 }); Assert.IsTrue(result == 12); }
public void TestArraySumAccuracy() { int[] inputArray = { 1, 2, 3, 4, 5 }; Assert.AreEqual(15, ArraySum.Sum(inputArray)); }