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