Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Day01.Solve();
            Day02.Solve();
            Day03.Solve();
            Day04.Solve();
            Day05.Solve();
            Day06.Solve();
            Day07.Solve();
            Day08.Solve();
            Day09.Solve();
            Day10.Solve();
            Day11.Solve();
            Day12.Solve();
            Day13.Solve();
            Day14.Solve();
            Day15.Solve();
            Day16.Solve();
            Day17.Solve();
            Day18.Solve();
            Day19.Solve();
            Day20.Solve();
            Day21.Solve();
            Day22.Solve();
            Day23.Solve();
            Day24.Solve();
            Day25.Solve();

            Console.WriteLine("Press any key to exit");
            Console.ReadKey();
        }
Ejemplo n.º 2
0
        public void Test2PuzzleInput()
        {
            var day02 = new Day02();

            Assert.AreEqual(
                584,
                day02.Solve2(Day02.PUZZLE_INPUT));
        }
Ejemplo n.º 3
0
        public void Test1PuzzleInput()
        {
            var day02 = new Day02();

            Assert.AreEqual(
                439,
                day02.Solve1(Day02.PUZZLE_INPUT));
        }
Ejemplo n.º 4
0
        public void Test1FromExample()
        {
            var day02 = new Day02();

            Assert.AreEqual(
                2,
                day02.Solve1(
                    new string[]
            {
                "1-3 a: abcde",
                "1-3 b: cdefg",
                "2-9 c: ccccccccc",
            }));
        }