Esempio n. 1
0
 public void Add_StringContainingNegativeNumbers_Throws(string numbers)
 {
     Assert.Throws <ArgumentException>(() => StringCalculator.Add(numbers));
 }
Esempio n. 2
0
 public void Add_EmptyStringAsParam_ReturnsZero()
 {
     Assert.AreEqual(0, StringCalculator.Add(string.Empty));
 }
Esempio n. 3
0
 public void Add_MoreThanThreeNumbersSeparatedByComma_ReturnsTheirSum(string input, int result)
 {
     Assert.AreEqual(result, StringCalculator.Add(input));
 }