Example #1
0
        public void Child_Test()
        {
            //Arrange data to test
            int    quantity     = 2;
            double actual_price = 12;
            string person       = "child";
            double expected     = 24;
            string day          = "daily";

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

            Cin.Child(quantity, person, day);

            //Assert
            double total_price = quantity * actual_price;

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