예제 #1
0
        public void PuzzleExample_FindFirstInvalid()
        {
            const int preambleLength = 5;
            var       system         = new XmasSystem(PuzzleExample);

            system.FindFirstInvalid(preambleLength).Should().Be(127);
        }
예제 #2
0
        public void Puzzle1_FindFirstInvalid()
        {
            const int preambleLength = 25;
            var       system         = new XmasSystem(Input.Day09);

            system.FindFirstInvalid(preambleLength).Should().Be(138879426L);
        }