Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }