Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
comparison API/Objects/RaceTests.cs @ 139:3e4864e206ea
Re #140: Equality methods
* Add equality testing to RequiresNoMoreThanN requirement
* Add extra different races for testing more of equality method
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 26 Apr 2011 19:47:36 +0000 |
parents | 081b48413f6d |
children | 2ae80631ec9c |
comparison
equal
deleted
inserted
replaced
138:11faab6c712a | 139:3e4864e206ea |
---|---|
127 { | 127 { |
128 DummyWarFoundryFactory factory = new DummyWarFoundryFactory(); | 128 DummyWarFoundryFactory factory = new DummyWarFoundryFactory(); |
129 GameSystem gameSystem = new GameSystem("system2", "another system", factory); | 129 GameSystem gameSystem = new GameSystem("system2", "another system", factory); |
130 return new Race("race2", "other race", gameSystem, factory); | 130 return new Race("race2", "other race", gameSystem, factory); |
131 } | 131 } |
132 | |
133 public Race GetOtherDifferentObjectWithSubID() | |
134 { | |
135 DummyWarFoundryFactory factory = new DummyWarFoundryFactory(); | |
136 GameSystem gameSystem = new GameSystem("system", "system", factory); | |
137 return new Race("race", "subid", "race", gameSystem, factory); | |
138 } | |
139 | |
140 public Race GetOtherDifferentObjectWithGameSystem() | |
141 { | |
142 DummyWarFoundryFactory factory = new DummyWarFoundryFactory(); | |
143 GameSystem gameSystem = new GameSystem("system2", "system", factory); | |
144 return new Race("race", "race", gameSystem, factory); | |
145 } | |
132 } | 146 } |
133 } | 147 } |
134 | 148 |