public void TestCalculatorIntAddStringReturnSum() { TaxCodeFinder taxCodeFinder = new TaxCodeFinder(); Assert.AreEqual(taxCodeFinder.CalculatorIntAddString("1,1"), 2); Assert.AreEqual(taxCodeFinder.CalculatorIntAddString("1,3"), 4); Assert.AreEqual(taxCodeFinder.CalculatorIntAddString("1"), 1); Assert.AreEqual(taxCodeFinder.CalculatorIntAddString("1,#"), 1); }
public void TestCalculatorIntAddStringReturnsZero() { TaxCodeFinder taxCodeFinder = new TaxCodeFinder(); Assert.AreEqual(taxCodeFinder.CalculatorIntAddString(string.Empty), 0); }