Mercurial > repos > IBBoard.WarFoundry.API.Tests
comparison API/Objects/Requirement/Mock/AbstractFixedRequirement.cs @ 146:8c519a44e699
Re #345: Add failure message to requirements
* Add testing of failure messages for "allows adding"
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 01 May 2011 19:17:11 +0000 |
parents | cd95fc6400b2 |
children | 32b3e41bc8f0 |
comparison
equal
deleted
inserted
replaced
145:0d40d80226b8 | 146:8c519a44e699 |
---|---|
26 | 26 |
27 public string GetValidationMessage (Army army) | 27 public string GetValidationMessage (Army army) |
28 { | 28 { |
29 return (result.Equals(Validation.Failed)) ? "Validation failed" : ""; | 29 return (result.Equals(Validation.Failed)) ? "Validation failed" : ""; |
30 } | 30 } |
31 | |
32 public string GetAllowsAddingMessage (UnitType toAdd, Army toArmy) | |
33 { | |
34 return (result.Equals(Validation.Failed)) ? "Validation failed" : ""; | |
35 } | |
31 } | 36 } |
32 } | 37 } |
33 | 38 |