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