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