示例#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 PartOneSmallTest()
        {
            var subject = new JoltAdapter(GetSmallExampleInput());

            Assert.Equal(35, subject.GetChainInput());
        }
示例#3
0
        public void PartOneTest()
        {
            var subject = new JoltAdapter(GetExampleInput());

            Assert.Equal(220, subject.GetChainInput());
        }