public void OneChildrenMovieDayReturnsChildrenMinusMovieDay() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.THU, true, false); kata.AddTicket(12, true); var result = kata.FinishPurchase(); Assert.AreEqual(3.5F, result); }
public void OneChildren3DMovieReturnChildrenPlus3D() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, true); kata.AddTicket(12, true); var result = kata.FinishPurchase(); Assert.AreEqual(8.5F, result); }
public void OneChildrenInRegularWeekdayReturnsChildren() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, false); kata.AddTicket(12, true); var result = kata.FinishPurchase(); Assert.AreEqual(5.5F, result); }
public void OneChildreLogeReturnsChildrenPlusLoge() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, false, false); kata.AddTicket(12, true); var result = kata.FinishPurchase(); Assert.AreEqual(7.5F, result); }
public void GeneralGroupReturnsReturnsGeneralGroup() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, false); for (int i = 0; i < 20; i++) { kata.AddTicket(18, false); } var result = kata.FinishPurchase(); Assert.AreEqual(6.0F*20, result); }
public void OneChildrenOverlengthReturnsChildrenPlusOverlength() { var kata = new MovieTickets(); kata.StartPurchase(121, Day.MON, true, false); kata.AddTicket(12, true); var result = kata.FinishPurchase(); Assert.AreEqual(7F, result); }
public void OneStudentInRegularWeekdayReturnsStudent() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, false); kata.AddTicket(18, true); var result = kata.FinishPurchase(); Assert.AreEqual(8, result); }
public void OneStudent3DMovieReturnsStudentPlus3D() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, true); kata.AddTicket(18, true); var result = kata.FinishPurchase(); Assert.AreEqual(11F, result); }
public void OneSenior3DMovieReturnSeniorPlus3D() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, true); kata.AddTicket(65, true); var result = kata.FinishPurchase(); Assert.AreEqual(9F, result); }
public void OneGeneralInRegularWeekdayReturnsGeneralAdmission() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.MON, true, false); kata.AddTicket(18, false); var result = kata.FinishPurchase(); Assert.AreEqual(11, result); }
public void OneChildrenWeekendReturnsChildrenPlusWeekend() { var kata = new MovieTickets(); kata.StartPurchase(1, Day.SAT, true, false); kata.AddTicket(12, true); var result = kata.FinishPurchase(); Assert.AreEqual(7.0F, result); }