public void SetUp() { var seeder = new Seeder(); seeder.FillListWithIncome(); seeder.FillListWithExpenses(); bc.SeparateIncomeAndExpense(BudgetCalculator.listOfEconomy); }
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(); }