Example #1
0
        public static void Part1(string[] input)
        {
            Helper.PrintChallengePart("Part 1");

            VoltageAdaptor volts  = new VoltageAdaptor(input);
            int            result = volts.CalculateDifferences();

            Console.WriteLine("Volts Difference: " + result);
        }
Example #2
0
        public void Day10Part1Bonus()
        {
            // Arrange
            string[] input = Helper.ParseInput(@"Inputs\\Day10_exampleBonus.txt");

            //Act
            VoltageAdaptor volts  = new VoltageAdaptor(input);
            int            result = volts.CalculateDifferences();

            //Assert
            Assert.AreEqual(220, result);
        }