Example #1
0
        public void Part1()
        {
            var answer = Day22.Part1();

            answer.Should().NotBe(-1);
            answer.Should().Be(32102);
        }
Example #2
0
        public void Part2()
        {
            var answer = Day22.Part2();

            answer.Should().NotBe(31359L);
            answer.Should().BeGreaterThan(31359L);
            answer.Should().Be(34173L);
        }
Example #3
0
        public void Part1_Example()
        {
            var answer = Day22.Part1(true);

            answer.Should().Be(306);
        }
Example #4
0
        public void Part2_Example()
        {
            var answer = Day22.Part2(true);

            answer.Should().Be(291);
        }