Beispiel #1
0
 public void Attack(string target)
 {
     Validator.CheckIfStringIsNullOrEmpty(target);
     this.targets.Add(target);
 }
Beispiel #2
0
 public void Attack(string target)
 {
     Validator.CheckIfStringIsNullOrEmpty(target, "Target cannot be null or empty");
     this.targets.Add(target);
 }
Beispiel #3
0
 public void Attack(string target)
 {
     Validator.CheckIfStringIsNullOrEmpty(target, string.Format(ErrorMessages.StringNullOrEmptyErrorMessage, "Target"));
     this.Targets.Add(target);
 }