public void CustomerCreateCorrectStatement() { Customer customer = new Customer("Bug"); var movie1 = new ChildrenMovie("Angry Birds", Rental.ChildrenBaseAmount); Rental rental1 = new Rental(movie1, 2); customer.AddRental(rental1); var movie2 = new NewReleaseMovie("StarWar", Rental.NewReleaseBaseAmount); Rental rental2 = new Rental(movie2, 10); customer.AddRental(rental2); var movie3 = new RegularMovie("Hatico", Rental.RegularBaseAmount); Rental rental3 = new Rental(movie3, 4); customer.AddRental(rental3); string actual = customer.Statement(); Assert.AreEqual("учет аренды для Bug\n\tAngry Birds\t15\n\tStarWar\t30\n\tHatico\t32\nСумма задолженности составляет 77\nВы заработали 4 очков за активность", actual); }
public void NameFilmShouldBeCorrect() { var movie = new ChildrenMovie("Rio2", Rental.ChildrenBaseAmount); Assert.AreEqual("Rio2", movie.Title); }