Example #1
0
 public void SingleNewReleaseStatement()
 {
     statement.AddRental(new Rental(new Movie("The Cell", Movie.PriceCode.NEW_RELEASE), 3));
     Assert.AreEqual(
         "Rental Record for Fred\n" +
         "\tThe Cell\t9\nAmount owed is 9\n" +
         "You earned 2 frequent renter points",
         statement.Generate());
     Assert.AreEqual(9.0, statement.TotalAmount);
     Assert.AreEqual(2, statement.FrequentPoints);
 }