public void ShouldGetZhaoJunHeroWithWandAttackAndTwoShoesAttack() { var zhaoJunHero = new WandEquipmentDecorator(new ShoesEquipmentDecorator(new ShoesEquipmentDecorator(new ShoesEquipmentDecorator(new ZhaoJunHero())))); Assert.Equal("base attack by snow, shoes, shoes, shoes, wand", zhaoJunHero.GetAttackDescription()); Assert.Equal(12, zhaoJunHero.Attack()); }
public void ShouldGetZhaoJunHeroWithWandAttack() { var zhouYuHero = new WandEquipmentDecorator(new ZhouYuHero()); Assert.Equal("base attack by fire, wand", zhouYuHero.GetAttackDescription()); Assert.Equal(6.2, zhouYuHero.Attack()); }