public void EnumerateToDateOfEmptyList()
        {
            var list = new TransactionListTestClass();

            var result = list.ToDate(new Date(2000, 01, 01)).Select(x => x.Date).ToArray();

            result.Should().BeEmpty();
        }
        public void EnumerateToDateBetweenEntries()
        {
            var list = new TransactionListTestClass();

            list.Add(Guid.NewGuid(), new Date(2000, 01, 01));
            list.Add(Guid.NewGuid(), new Date(2001, 01, 01));
            list.Add(Guid.NewGuid(), new Date(2001, 01, 01));
            list.Add(Guid.NewGuid(), new Date(2001, 01, 01));
            list.Add(Guid.NewGuid(), new Date(2002, 01, 01));
            list.Add(Guid.NewGuid(), new Date(2003, 01, 01));

            var result = list.ToDate(new Date(2001, 06, 01)).Select(x => x.Date).ToArray();

            result.Should().Equal(new Date[] { new Date(2000, 01, 01), new Date(2001, 01, 01), new Date(2001, 01, 01), new Date(2001, 01, 01) });
        }