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

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

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

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

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