Exemple #1
0
        public void ReturnNumber_WhenSingleNumberEntered(string input, int expected)
        {
            var calculator = new StrCalculator();

            var actual = calculator.Add(input);

            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void ReturnZero_WhenNumbersAreEmpty()
        {
            var calculator = new StrCalculator();

            var actual = calculator.Add("");

            Assert.Equal(0, actual);
        }