Example #1
0
        public void SumNumbers_StartAt0SumNext100_TotalIs5050()
        {
            var kata = new Calculator();

            Assert.AreEqual(5050, kata.SumNumbers(1, 100));
        }
Example #2
0
        public void SumNumbers_StartAt0SumNext3_TotalIs3()
        {
            var kata = new Calculator();

            Assert.AreEqual(3, kata.SumNumbers(0, 3));
        }
Example #3
0
        public void SumNumbers_StartAt100SumNext2_TotalIs201()
        {
            var kata = new Calculator();

            Assert.AreEqual(201, kata.SumNumbers(100, 2));
        }
Example #4
0
        public void SumNumbers_StartAt0SumNext0_TotalIs0()
        {
            var kata = new Calculator();

            Assert.AreEqual(0, kata.SumNumbers(0, 0));
        }
Example #5
0
        public void SumNumbers_StartAt100SumNext1_TotalIs100()
        {
            var kata = new Calculator();

            Assert.AreEqual(100, kata.SumNumbers(100, 1));
        }