public static void ExeptionDays() { try { Rental rental = new Rental(movie, -2); } catch (DaysExeptions e) { Assert.AreEqual(e.Days, -2); } catch(Exception) { Assert.Fail(); } }
public static void CreateMovie() { Rental rental = new Rental(movie, days: days); Assert.AreEqual(rental.CalculateDebt(), price * days); }