Example #1
0
        public void SumRangeOddTestStartAtZero()
        {
            int manualCalculation = _manualCalculateSumRangeOdd(0, 100);
            int result            = Sums.SumRangeOdd(0, 100);

            Assert.AreEqual(manualCalculation, result);
        }
Example #2
0
 public void SumRangeOddTestNegativeRange()
 {
     Assert.AreEqual(0, Sums.SumRangeOdd(10, 9));
 }
Example #3
0
        public void SumRangeOddTestStartAtOne()
        {
            int manualCalculation = _manualCalculateSumRangeOdd(0, 100);

            Assert.AreEqual(manualCalculation, Sums.SumRangeOdd(1, 100));
        }