public void TestTaxCodesExist() { TaxCodeFinder taxCodeFinder = new TaxCodeFinder(); List <string> listOfCodes = new List <string>(); Assert.AreEqual(taxCodeFinder.TaxCodeExists(listOfCodes), "No Tax Code found"); }
public void TestTaxCodesFundAndReturned() { TaxCodeFinder taxCodeFinder = new TaxCodeFinder(); List <string> listOfCodes = new List <string>(); listOfCodes.Add("Tax"); Assert.AreEqual(taxCodeFinder.TaxCodeExists(listOfCodes), "Tax"); }
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); }