public void When_the_loan_is_indefinite()
        {
            var loan = new BookLoan();
            loan.MemberName = "Jill";

            Assert.IsFalse(loan.IsDue());
        }
Beispiel #2
0
        public void When_the_loan_is_indefinite()
        {
            var loan = new BookLoan {
                MemberName = "Jill"
            };

            Assert.IsFalse(loan.IsDue());
        }
Beispiel #3
0
        public void When_the_loan_is_due()
        {
            var loan = new BookLoan {
                MemberName = "Jill", DueDate = new DateTime(2000, 12, 31)
            };

            Assert.IsTrue(loan.IsDue());
        }
        public void When_the_loan_is_not_yet_due()
        {
            var loan = new BookLoan();
            loan.MemberName = "Jill";
            loan.DueDate = new DateTime(2100, 12, 31);

            Assert.IsFalse(loan.IsDue());
        }
        public void When_the_loan_is_not_yet_due()
        {
            var loan = new BookLoan();

            loan.MemberName = "Jill";
            loan.DueDate    = new DateTime(2100, 12, 31);

            Assert.IsFalse(loan.IsDue());
        }
        public void When_the_loan_is_due()
        {
            var loan = new BookLoan {MemberName = "Jill", DueDate = new DateTime(2000, 12, 31)};

            Assert.IsTrue(loan.IsDue());
        }
        public void When_the_loan_is_not_yet_due()
        {
            var loan = new BookLoan("Jill", new DateTime(2100, 12, 31));

            Assert.IsFalse(loan.IsDue());
        }
        public void When_the_loan_is_indefinite()
        {
            var loan = new BookLoan("Jill");

            Assert.IsFalse(loan.IsDue());
        }
        public void When_the_loan_is_due()
        {
            var loan = new BookLoan("Jill", new DateTime(2000, 12, 31));

            Assert.IsTrue(loan.IsDue());
        }
Beispiel #10
0
        public void When_the_loan_is_indefinite()
        {
            var loan = new BookLoan("Jill");

            Assert.IsFalse(loan.IsDue());
        }
Beispiel #11
0
        public void When_the_loan_is_due()
        {
            var loan = new BookLoan("Jill", new DateTime(2000, 12, 31));

            Assert.IsTrue(loan.IsDue());
        }
Beispiel #12
0
        public void When_the_loan_is_not_yet_due()
        {
            var loan = new BookLoan("Jill", new DateTime(2100, 12, 31));

            Assert.IsFalse(loan.IsDue());
        }