public void model_duck_cannot_fly_then_add_rocket() { Duck model = new ModelDuck(); Assert.AreEqual("I can't fly.", model.PerformFly()); model.SetFlyBehaviour(new FlyRocketPowered()); Assert.AreEqual("I'm flying with a rocket!", model.PerformFly()); }
public void model_duck_cannot_fly() { Duck model = new ModelDuck(); Assert.AreEqual("I can't fly.", model.PerformFly()); }