Пример #1
0
        public void Test1_4()
        {
            var res = Day01.ComputeResultingFrequency(new[] { -1, -2, -3 });

            Assert.AreEqual(-6, res);
        }
Пример #2
0
        public void Test2_2()
        {
            var res = Day01.FindCalibrationFrequency(new[] { 1, -1 });

            Assert.AreEqual(0, res);
        }
Пример #3
0
        public void Test1_3()
        {
            var res = Day01.ComputeResultingFrequency(new[] { 1, 1, -2 });

            Assert.AreEqual(0, res);
        }
Пример #4
0
        public void Test1_1()
        {
            var res = Day01.ComputeResultingFrequency(new[] { 1, -2, 3, 1 });

            Assert.AreEqual(3, res);
        }
Пример #5
0
        public void Test2_5()
        {
            var res = Day01.FindCalibrationFrequency(new[] { 7, 7, -2, -7, -4 });

            Assert.AreEqual(14, res);
        }
Пример #6
0
        public void Test2_4()
        {
            var res = Day01.FindCalibrationFrequency(new[] { -6, 3, 8, 5, -6 });

            Assert.AreEqual(5, res);
        }
Пример #7
0
        public void Test2_3()
        {
            var res = Day01.FindCalibrationFrequency(new[] { 3, 3, 4, -2, -4 });

            Assert.AreEqual(10, res);
        }