Exemple #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));
        }
Exemple #2
0
        public void PartOneTest()
        {
            var subject = new XMASHacking(GetExampleInput());

            Assert.Equal(127, subject.Hack(5));
        }