Beispiel #1
0
        static void Main(string[] args)
        {
            var xmas = new XMASHacking(File.ReadAllLines("../input.txt"));

            //Part One
            Console.WriteLine(xmas.Hack(25));

            //Part Two
            Console.WriteLine(xmas.FindWeakness(25));
        }
Beispiel #2
0
        public void PartTwoTest()
        {
            var subject = new XMASHacking(GetExampleInput());

            Assert.Equal(62, subject.FindWeakness(5));
        }