public void Add7WithSingleDelimiterInBracketsTestMethod() { const string numbers = "//[;]\n3;9;4;1500;1000;89;23;12;0"; const int expected = 1140; int actual = StringCalculator.Add7(numbers); Assert.AreEqual(expected, actual); }
public void Add7WithLongDelimiterTestMethod() { const string numbers = "//[;;;]\n3;;;9;;;4;;;1500;;;1000;;;89;;;23;;;12;;;0"; const int expected = 1140; int actual = StringCalculator.Add7(numbers); Assert.AreEqual(expected, actual); }