Пример #1
0
        public void Solution_2_2()
        {
            var service = new Advent_2_1();

            var result = service.ChecksumDivisible(day2Data);

            Assert.AreEqual(288, result);
        }
Пример #2
0
        public void Solution_2_1()
        {
            var service = new Advent_2_1();

            var result = service.Checksum(day2Data);

            Assert.AreEqual(51833, result);
        }
Пример #3
0
        public void Test_2_2_1()
        {
            var data    = "2\t4\t3\r\n3\t4\t2";
            var service = new Advent_2_1();

            var result = service.ChecksumDivisible(data);

            Assert.AreEqual(4, result);
        }
Пример #4
0
        public void Test_2_1_1()
        {
            var data    = "1\t2\r\n2\t1";
            var service = new Advent_2_1();

            var result = service.Checksum(data);

            Assert.AreEqual(2, result);
        }