public void Add_EmptyValue_OutputsZero()
        {
            //Act
            stringCalculatorService.Add("");
            var expected = "0";

            //Assert
            VerifyOutputLine(expected);
        }
示例#2
0
 public static void Main(string[] args)
 {
     _StringCalculatorService = new StringCalculatorService();
     _StringCalculatorService.Add(null);
 }
        public void Add_EmptyString_Input_returns_0(string numbers, int expected)
        {
            var result = _service.Add(numbers);

            Assert.Equal(expected, result);
        }