public void RentMovies_CalcPayment() { var receipt = Alex.Buy(new RentInfo[] { new RentInfo(Avatar), new RentInfo(Cube) }); Assert.AreEqual(2, receipt.Rents.Count); Assert.AreEqual(MovieItemStatus.Sold, receipt.Rents[0].Item.Status); Assert.AreEqual(MovieItemStatus.Sold, receipt.Rents[1].Item.Status); var payment = receipt.Rents[0].Item.SellingPrice + receipt.Rents[1].Item.SellingPrice; Assert.AreEqual(payment, receipt.Payment); }