[TestMethod] public void Answer1() { var program = new BitProgram(); program.Run(Input.GetLines(Properties.Resources.Day14Input)); Assert.AreEqual("15514035145260", program.Sum()); }
public void Test1() { var program = new BitProgram(); program.Run(new string[] { "mask = XXXXXXXXXXXXXXXXXXXXXXXXXXXXX1XXXX0X", "mem[8] = 11", "mem[7] = 101", "mem[8] = 0" }); Assert.AreEqual("165", program.Sum()); }