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

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

            Assert.IsFalse(loan.IsDue());
        }
예제 #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());
        }
예제 #10
0
        public void When_the_loan_is_indefinite()
        {
            var loan = new BookLoan("Jill");

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

            Assert.IsTrue(loan.IsDue());
        }
예제 #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());
        }