示例#1
0
        [TestMethod]//method
        public void Adult_Tuesday_Test()
        {
            //Arrange data to test
            int    quantity     = 2;
            double actual_price = 13;
            string person       = "adult";
            double expected     = 26.0;
            string day          = "Tuesday";

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

            Cin.Adult_Tuesday(quantity, person, day);

            //Assert
            double total_price = quantity * actual_price;

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