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); }
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); }