Exemple #1
0
    static void Main(string[] args)
    {
        var runner = new PuzzleRunner(
            "Advent of Code 2019",
            "https://adventofcode.com/2019",
            "By: SDragon");

        runner.Run(args);
    }
        public void Puzzles(PuzzleResult expectedPuzzleResult)
        {
            var runner = new PuzzleRunner();

            var puzzleResult = runner.Run(expectedPuzzleResult.PuzzleName);

            Assert.Equal(expectedPuzzleResult.Part1.Result, puzzleResult.Part1.Result);
            if (expectedPuzzleResult.Part2 != null)
            {
                Assert.Equal(expectedPuzzleResult.Part2.Result, puzzleResult.Part2.Result);
            }
        }