Пример #1
0
        public void ShouldTwoFindSummable2020()
        {
            AOC aoc = new AOC();

            int[] set1values = aoc.GetSummableValues(testset1, targetSum);
            //Console.WriteLine(set1values);
            Assert.Equal(targetSum, set1values[0] + set1values[1]);
            int[] set2values = aoc.GetSummableValues(testset2, targetSum);
            //Console.WriteLine(set2values);
            Assert.Equal(targetSum, set2values[0] + set2values[1]);
        }