public void Day02_PartOneTest() { var lines = new[] { "1-3 a: abcde", "1-3 b: cdefg", "2-9 c: ccccccccc" }; Assert.AreEqual(2, PasswordPhilosophy.GetValidPasswords(lines.Select(PasswordPolicy.Parse).ToList(), PasswordPhilosophy.RentalPlace.Sleds).Length); }
public void Day02_PartTwoTest() { Assert.AreEqual(688, PasswordPhilosophy.GetValidPasswords(_input, PasswordPhilosophy.RentalPlace.Tobogan).Length); }
public void Day02_PartOneTest() { Assert.AreEqual(416, PasswordPhilosophy.GetValidPasswords(_input, PasswordPhilosophy.RentalPlace.Sleds).Length); }