Exemplo n.º 1
0
        public void ShouldMultiplyCorrectly()
        {
            AOC aoc        = new AOC();
            int testvalue1 = aoc.MultiplySummableValues(testset1, targetSum);

            Assert.Equal(514579, testvalue1);

            int testvalue2 = aoc.MultiplySummableValues(testset2, targetSum);

            Assert.Equal(996996, testvalue2);

            int testvalue3 = aoc.MultiplyThreeSummableValues(testset1, targetSum);

            Assert.Equal(241861950, testvalue3);

            int testvalue4 = aoc.MultiplyThreeSummableValues(testset2, targetSum);

            Assert.Equal(9210402, testvalue4);
        }