Ejemplo n.º 1
0
        public void Part1_ShouldMultipleMatchingPairs()
        {
            var input = new[] { 1721, 979, 366, 299, 675, 1456 };

            var day1   = new Days._2020._1.Day1(input);
            var result = day1.Part1();

            result.ShouldBe(1721 * 299);
        }
Ejemplo n.º 2
0
        public void Part1_ShouldMultipleMatchingTriplets()
        {
            var input = new[] { 1721, 979, 366, 299, 675, 1456 };

            var day1   = new Days._2020._1.Day1(input);
            var result = day1.Part2();

            result.ShouldBe(979 * 366 * 675);
        }