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_can_quack() { Duck model = new ModelDuck(); Assert.AreEqual("Quack", model.PerformQuack()); }
public void model_duck_cannot_fly() { Duck model = new ModelDuck(); Assert.AreEqual("I can't fly.", model.PerformFly()); }
public void duck_is_a_model_duck() { Duck model = new ModelDuck(); Assert.AreEqual("I'm a model duck", model.Display()); }