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)); }
public void PartOneTest() { var subject = new XMASHacking(GetExampleInput()); Assert.Equal(127, subject.Hack(5)); }