Пример #1
0
        public void PuzzlePartTwo()
        {
            //  Arrange
            var input = File
                        .ReadLines("tests/y2020/Day2.Input.txt")
                        .ToList();

            // Act
            var actual = PasswordPhilosophy.AreValidOccurence(input);

            // Assert
            Assert.Equal(562, actual);
        }
Пример #2
0
        public void PuzzleTwo()
        {
            var input = new string[] {
                "1-3 b: cdefg",
                "1-3 a: abcde",
                "2-9 c: ccccccccc"
            };

            // Act
            var actual = PasswordPhilosophy.AreValidOccurence(input);

            // Assert
            Assert.Equal(1, actual);
        }