Ejemplo n.º 1
0
        public static void Part2(string[] input)
        {
            Helper.PrintChallengePart("Part 2");

            PassportManager passMangager = new PassportManager(input);
            List <Passport> valid        = passMangager.PassportValidation2();

            Console.WriteLine("Valid Passports: " + valid.Count);
        }
Ejemplo n.º 2
0
        public void Day4Part2Test()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day4_example2_valid.txt");


            // Act
            PassportManager passMangager = new PassportManager(input);
            List <Passport> valid        = passMangager.PassportValidation2();

            // Assert
            Assert.AreEqual(4, valid.Count);
        }