public void Add_AnyLengthDelimiter(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }
public void Add_Negatives_ThrowsException(string input, string expected) { var calculator = new Calc(); Assert.AreEqual(expected, Assert.ThrowsException <Exception>(() => calculator.Add(input)).Message); }
public void Add_WhenNumbersOver1000_DontAdd(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }
public void Add_MoreThanTwoNumbers(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }
public void Add_CommaDelimFormat(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }
public void Add_WhenSingleNumber_ReturnNumber(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }
public void Add_EmptyString(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }
public void Add_MultipleDelimiters(string input, int expected) { var calculator = new Calc(); Assert.AreEqual(expected, calculator.Add(input)); }