Esempio n. 1
0
        public void CanBuildMotorbike()
        {
            string name = "mon garage";

            var builder = new MotorbikeBuilder();
            var motorbike = new Garage(name).Build(builder);

            Assert.AreEqual("motorbike", motorbike.Name.ToLower());
            Assert.AreEqual(name, motorbike.Garage);
            Assert.AreEqual(2, motorbike.WheelCount);
        }
Esempio n. 2
0
        public void CanBuildCar()
        {
            string name = "mon garage";

            var builder = new CarBuilder();
            var car = new Garage(name).Build(builder);

            Assert.AreEqual("car", car.Name.ToLower());
            Assert.AreEqual(name, car.Garage);
            Assert.AreEqual(4, car.WheelCount);
        }