Ejemplo n.º 1
0
        public void DriveStrategyReturnsDriveTest()
        {
            var driveStrategy = new DriveStrategy();

            var result = driveStrategy.Move();

            Assert.AreEqual(result, "Drive");
        }
Ejemplo n.º 2
0
 public Train()
 {
     MovingType = new DriveStrategy();
 }
Ejemplo n.º 3
0
 public Car()
 {
     MovingType = new DriveStrategy();
 }
Ejemplo n.º 4
0
 public Motorbike()
 {
     MovingType = new DriveStrategy();
 }
Ejemplo n.º 5
0
 public Bike()
 {
     MovingType = new DriveStrategy();
 }