public void Add4WithNoNumbersInArgumentTestMethod() { const string numbers = "//;\n"; const int expected = 0; int actual = StringCalculator.Add4(numbers); Assert.AreEqual(expected, actual); }
public void Add4TestMethod() { const string numbers = "//;\n3;9;4;89;23;12;0"; const int expected = 140; int actual = StringCalculator.Add4(numbers); Assert.AreEqual(expected, actual); }