예제 #1
0
        public void SetUp()
        {
            var seeder = new Seeder();

            seeder.FillListWithIncome();
            seeder.FillListWithExpenses();
            bc.SeparateIncomeAndExpense(BudgetCalculator.listOfEconomy);
        }
예제 #2
0
        public void LogAll_01_CheckIfItemAddsToList()
        {
            var bc = new BudgetCalculator();

            bc.SeparateIncomeAndExpense(BudgetCalculator.listOfEconomy);
            bc.WithdrawEachExpense(BudgetCalculator.listOfEconomy);
            Saving.CheckSavings(BudgetCalculator.savingsList);
            log.listToPrint.Add("(test)");
            log.LogAll();
            var actual   = log.listToPrint.Find(e => e.Contains("(test)"));
            var expected = "(test)";

            Assert.AreEqual(actual, expected);
            log.listToPrint.Clear();
        }