public void TestGetInputData() { List <int> numbers = ExpepenseReport.GetInputData(PuzzleFilePath); Assert.IsNotNull(numbers); Assert.Contains(1918, numbers); }
public void TestFindTrippleSumAnwser() { int desiredSum = 2020; // Find the answer to day 1 challange 2 var input = ExpepenseReport.GetInputData(PuzzleFilePath); List <int> numbers = ExpepenseReport.FindTrippleSum(input, desiredSum); Assert.AreEqual(numbers.Sum(), desiredSum); int answer = numbers.Aggregate((x, y) => x * y); Console.Write(answer); }