예제 #1
0
        public void test_oresund_Type()
        {
            OresundBron.Car c      = new OresundBron.Car();
            string          result = c.VehicleType();

            Assert.AreEqual(result, "Oresund car");
        }
예제 #2
0
        public void test_oresund_Price()
        {
            OresundBron.Car c      = new OresundBron.Car();
            double          result = c.Price();

            Assert.AreEqual(result, 410);
        }
예제 #3
0
        public void test_oresund_discount_Price()
        {
            OresundBron.Car c = new OresundBron.Car();
            c.brobizz = true;

            double result = c.Price();

            Assert.AreEqual(result, 161);
        }