Mercurial > repos > IBBoard.WarFoundry.API.Tests
diff API/Objects/Mock/MockArmy.cs @ 172:c026c02583ca
* Remove MockArmy.GetMockArmy as it only causes problems in unit tests
* Remove MockArmyCategory as MockArmy change would make it do nothing special
* Close streams as well as files to fix Windows unit test errors
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 24 Sep 2011 11:46:20 +0100 |
parents | dd384f35a96f |
children |
line wrap: on
line diff
--- a/API/Objects/Mock/MockArmy.cs Tue Sep 13 20:49:06 2011 +0100 +++ b/API/Objects/Mock/MockArmy.cs Sat Sep 24 11:46:20 2011 +0100 @@ -8,19 +8,7 @@ { public class MockArmy : Army { - private static MockArmy mockArmy; - - public static MockArmy GetMockArmy () - { - if (mockArmy == null) - { - mockArmy = new MockArmy (); - } - - return mockArmy; - } - - private MockArmy () : base(MockRace.GetMockRace (), "Mock Army", 2000) + public MockArmy() : base(MockRace.GetMockRace(), "Mock Army", 2000) { ID = "MockArmy"; }