public void AddWithDelimiters() { kalbasi kalbasiAdd = new kalbasi(); var result = kalbasiAdd.Add("//;\n1;2"); Assert.AreEqual(result, 3); }
public void AddWithNewLine() { kalbasi kalbasiAdd = new kalbasi(); var result = kalbasiAdd.Add("1\n2,1000"); Assert.AreEqual(result, 1003); }
public void AddWithMoreThanTwoNumbersInString() { kalbasi kalbasiAdd = new kalbasi(); var result = kalbasiAdd.Add("1,2,123,1000"); Assert.AreEqual(result, 1126); }
public void AddWithTwoNumberInString() { kalbasi kalbasiAdd = new kalbasi(); var result = kalbasiAdd.Add("1,2"); Assert.AreEqual(result, 3); }
public void AddWithNegativeNumbers() { kalbasi kalbasiAdd = new kalbasi(); var result = kalbasiAdd.Add("-1,2,-3"); }
public void AddWithNewLineWithErorr() { kalbasi kalbasiAdd = new kalbasi(); var result = kalbasiAdd.Add("1,\n"); }