예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }
예제 #6
0
        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);
        }
예제 #7
0
        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);
        }
예제 #8
0
        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);
        }
예제 #9
0
        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);
        }
예제 #10
0
        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);
        }
예제 #11
0
        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);
        }