Add() public method

public Add ( string cadena ) : int
cadena string
return int
Esempio n. 1
0
 public void EmptyStringWillReturnZero()
 {
     Assert.AreEqual(0, _stringCalculator.Add(""));
 }
Esempio n. 2
0
        public void Add_Zero_Numbers_Return_Zero()
        {
            int result = _calculator.Add("");

            Assert.AreEqual(0, result);
        }
        public void EmptyStringReturns0()
        {
            var result = _stringCalculator.Add("");

            Assert.Equal(0, result);
        }