Example #1
0
        public void TestRunExample2()
        {
            Day02 day02 = new Day02();

            string codes = "1,1,1,4,99,5,6,0,99";

            day02.LoadProgram(codes);
            day02.RunProgram();

            Assert.AreEqual <string>("30,1,1,4,2,5,6,0,99", day02.GetIntegersAsString());
        }
Example #2
0
        public void TestRunExample1()
        {
            Day02 day02 = new Day02();

            string codes = "1,9,10,3,2,3,11,0,99,30,40,50";

            day02.LoadProgram(codes);
            day02.RunProgram();

            Assert.AreEqual <string>("3500,9,10,70,2,3,11,0,99,30,40,50", day02.GetIntegersAsString());
        }