Ejemplo n.º 1
0
        public void Within_InBetween_True()
        {
            var financialYear = new FinancialYear
            {
                Start = new DateTime(2001, 01, 01),
                End   = new DateTime(2001, 12, 31)
            };
            var date = new DateTime(2001, 01, 31);

            var result = financialYear.Within(date);

            result.Should().BeTrue();
        }
Ejemplo n.º 2
0
        public void Within_After_False()
        {
            var financialYear = new FinancialYear
            {
                Start = new DateTime(2001, 01, 01),
                End   = new DateTime(2001, 12, 31)
            };
            var date = new DateTime(2002, 01, 01);

            var result = financialYear.Within(date);

            result.Should().BeFalse();
        }