예제 #1
0
        public void TestAddCalculator()
        {
            Int32[] integers = new int[] { 1, 2, 3, 4, 5 };

            var add = new Add {
                ValueSet = integers
            };

            Int32[] resultingIntegers = add.AddCalculator();

            Int32[] expectedIntegers = { 1, 3, 6, 10, 15 };
            Assert.AreEqual(expectedIntegers, resultingIntegers);
        }