Mercurial > repos > IBBoard.WarFoundry.API.Tests
comparison API/Factories/Mock/MockRaceAndSystemFactory.cs @ 230:d6883a522c70
Re #419: Remove assumptions of a file-based install
* Make sure Race files aren't identified as GameSystem files
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Wed, 11 Jul 2012 20:54:12 +0100 |
parents | 6ec46f3db2d4 |
children |
comparison
equal
deleted
inserted
replaced
229:6ec46f3db2d4 | 230:d6883a522c70 |
---|---|
37 return false; | 37 return false; |
38 } | 38 } |
39 | 39 |
40 protected override bool CheckCanFindRaceFileContent(ZipFile file) | 40 protected override bool CheckCanFindRaceFileContent(ZipFile file) |
41 { | 41 { |
42 return true; | 42 return file.GetEntry("data.racex") != null; |
43 } | 43 } |
44 | 44 |
45 protected override bool CheckCanFindSystemFileContent(ZipFile file) | 45 protected override bool CheckCanFindSystemFileContent(ZipFile file) |
46 { | 46 { |
47 return true; | 47 return file.GetEntry("data.systemx") != null; |
48 } | 48 } |
49 | 49 |
50 protected override Army CreateArmyFromStream(ZipFile file, Stream dataStream) | 50 protected override Army CreateArmyFromStream(ZipFile file, Stream dataStream) |
51 { | 51 { |
52 throw new NotImplementedException(); | 52 throw new NotImplementedException(); |