public void ExpenseListHasItemsOnlyFromBankCategory() { ExpenseList list = null; list = ExpenseList.GetList(ECategoriaGasto.Bancario, 2013, false); Assert.IsTrue(list.Count > 0); Assert.IsNull(list.FirstOrDefault(x => x.Fecha.Year != 2013 || x.ECategoriaGasto != ECategoriaGasto.Bancario)); }
public void ExpenseListHasItemsOnlyFromAYear() { ExpenseList list = null; list = ExpenseList.GetList(ECategoriaGasto.Todos, 2013, false); Assert.IsTrue(list.Count > 0); Assert.IsNull(list.FirstOrDefault(x => x.Fecha.Year != 2013)); }