public void FlyStrategyReturnsFlyTest()
        {
            var flyStrategy = new FlyStrategy();

            var result = flyStrategy.Move();

            Assert.AreEqual(result, "Fly");
        }
Example #2
0
 public Rocket()
 {
     MovingType = new FlyStrategy();
 }
Example #3
0
 public Plane()
 {
     MovingType = new FlyStrategy();
 }
Example #4
0
 public Drone()
 {
     MovingType = new FlyStrategy();
 }