Example #1
0
        public void TestTaxCodesExist()
        {
            TaxCodeFinder taxCodeFinder = new TaxCodeFinder();
            List <string> listOfCodes   = new List <string>();

            Assert.AreEqual(taxCodeFinder.TaxCodeExists(listOfCodes), "No Tax Code found");
        }
Example #2
0
        public void TestTaxCodesFundAndReturned()
        {
            TaxCodeFinder taxCodeFinder = new TaxCodeFinder();
            List <string> listOfCodes   = new List <string>();

            listOfCodes.Add("Tax");
            Assert.AreEqual(taxCodeFinder.TaxCodeExists(listOfCodes), "Tax");
        }
Example #3
0
        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);
        }
Example #4
0
        public void TestCalculatorIntAddStringReturnsZero()
        {
            TaxCodeFinder taxCodeFinder = new TaxCodeFinder();

            Assert.AreEqual(taxCodeFinder.CalculatorIntAddString(string.Empty), 0);
        }