Пример #1
0
        public void Part2(string input, int expected)
        {
            var solution = _testObject.RunPart2(new List <string> {
                input
            });

            Assert.Equal(expected.ToString(), solution);
        }
Пример #2
0
        public void Part2()
        {
            var solution = _testObject.RunPart2(_input);

            Assert.Equal("10", solution);
        }
Пример #3
0
        public void Part2()
        {
            var solution = _testObject.RunPart2(new[] { "1,2,3" });

            Assert.Equal("3efbe78a8d82f29979031a4aa0b16a9d", solution.ToLower());
        }
Пример #4
0
        public void Part2(string sequence, int expectedCount)
        {
            var score = _testObject.RunPart2(new[] { sequence });

            Assert.Equal(expectedCount.ToString(), score);
        }