public void Setup() { this.warrior = new Warrior(NAME, DAMAGE, HP); }
public void Setup() { this.arena = new Arena(); this.warrior = new Warrior(NAME, DAMAGE, HP); }
public void ThrowExceptionWhenHPIsLessThanZero(int HP) { Assert.Throws <ArgumentException>(() => this.warrior = new Warrior("Name", 100, HP)); }
public void ThrowExceptionWhenDamageIsLessThanZero(int damage) { Assert.Throws <ArgumentException>(() => this.warrior = new Warrior("Name", damage, 200)); }
public void ThrowExceptionWhenNameIsNullOrEmpty(string name) { Assert.Throws <ArgumentException>(() => this.warrior = new Warrior(name, 100, 200)); }
public void Setup() { this.warrior = new Warrior("Didi", 100, 200); }