コード例 #1
0
        public void It_should_return_1_2_3_4_5()
        {
            var p      = new Prob1480();
            var result = p.RunningSum(new int[] { 1, 1, 1, 1, 1 });

            CollectionAssert.AreEquivalent(result, new int[] { 1, 2, 3, 4, 5 });
        }
コード例 #2
0
        public void It_should_return_1_3_6_10()
        {
            var p      = new Prob1480();
            var result = p.RunningSum(new int[] { 1, 2, 3, 4 });

            CollectionAssert.AreEquivalent(result, new int[] { 1, 3, 6, 10 });
        }