Beispiel #1
0
        public void BasicSumOperationTest(long[] array)
        {
            IIntSumCalculator summator = new BasicIntSumCalculator();

            long result = summator.Sum(array);

            Assert.Equal(11, result);
        }
Beispiel #2
0
        public void OverflowErrorOnSumOperation(long[] array)
        {
            IIntSumCalculator summator = new BasicIntSumCalculator();

            Assert.Throws <SumCalcAppException>(() => summator.Sum(array));
        }