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