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

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

            Assert.AreEqual(result, 410);
        }
Beispiel #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);
        }