Пример #1
0
        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));
        }
Пример #2
0
        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));
        }