예제 #1
0
        static void Main(string[] args)
        {
            var joltAdapter = new JoltAdapter(File.ReadAllLines("../input.txt"));

            //Part One
            Console.WriteLine(joltAdapter.GetChainInput());

            //Part Two
            Console.WriteLine(joltAdapter.ArrangeAdapter());
        }
예제 #2
0
        public void PartTwoTest()
        {
            var subject = new JoltAdapter(GetExampleInput());

            Assert.Equal(19208, subject.ArrangeAdapter());
        }
예제 #3
0
        public void PartTwoSmallTest()
        {
            var subject = new JoltAdapter(GetSmallExampleInput());

            Assert.Equal(8, subject.ArrangeAdapter());
        }