public void TestAdd(string numbers, int sum) { Calculator calculator = new Calculator(); int sumResult = calculator.Add(numbers); Assert.AreEqual(sum, sumResult); }
public void TestExceptionForNegativeNumbers() { Calculator calculator = new Calculator(); calculator.Add("-1"); }