Exemplo n.º 1
0
        public void Adult_After_5_Test()
        {
            //Arrange data to test
            int    quantity     = 2;
            double actual_price = 17.5;
            string person       = "adult";
            int    time         = 0500;
            double expected     = 35.0;
            string day          = "tuesday";

            //Act creating the class
            Tickets Cin = new Tickets();

            Cin.Adult_After_5(quantity, person, day, time);

            //Assert
            double total_price = quantity * actual_price;

            Assert.AreEqual(expected, total_price, 17.5, "Passed");
        }