public void IfTheListIsEmptyTheAverageIsZero() { var argList = new List <double>(); var result = ListExercises.Average(argList); Assert.AreEqual(0, result); }
public void GivenAListIsTheAverageCorrect() { var argList = new List <double> { 5, 2, 6, 1 }; var result = ListExercises.Average(argList); Assert.AreEqual(3.5, result); }