Ejemplo n.º 1
0
        public void CombinesToTwentyTwenty_RealInput_GetsRealAnswer()
        {
            var subject = new CombinesToTwoThousand();
            int result  =
                subject.FindCombinationInFile(
                    "C:\\Projects\\Homework\\advent-of-code-2020-puzzle-input\\aoc-day01-input.txt", 2020);

            result.Should().Be(211899);
        }
Ejemplo n.º 2
0
        public void CombinesToTwoThousand_TestInput_GetsExpectedProduct()
        {
            var subject = new CombinesToTwoThousand();
            int result  =
                subject.FindCombinationInFile(
                    "C:\\Projects\\Homework\\advent-of-code-2020-puzzle-input\\aoc-day01-test-input-1.txt", 2020);

            result.Should().Be(514579);
        }