Пример #1
0
        public void DifferentDelimitersAreSupported(int expected, string stringToCalc)
        {
            var actual = StringCalculator.Add(stringToCalc);

            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void AnyAmountOfNumbersReturnsSum(int expected, string stringToCalc)
        {
            var actual = StringCalculator.Add(stringToCalc);

            Assert.Equal(expected, actual);
        }
Пример #3
0
        public void LineBreaksAndCommasAreInterchangeable(int expected, string stringToCalc)
        {
            var actual = StringCalculator.Add(stringToCalc);

            Assert.Equal(expected, actual);
        }
Пример #4
0
        public void AddSingleNumberReturnsNumber(int expected, string stringToCalc)
        {
            var actual = StringCalculator.Add(stringToCalc);

            Assert.Equal(expected, actual);
        }