public void ShouldAddAllDuplicateValuesCorrectly() { using (AOC aoc = new AOC()) { List <int> distinctAnswers = aoc.CountDuplicateAnswers(input_2); //int ans = distinctAnswers.Aggregate(1, (x,y) => x * y); int prod = 0; foreach (int value in distinctAnswers) { if (value == 0) { continue; } prod += value; } Assert.Equal(3640, prod); } }