Mercurial > repos > IBBoard.WarFoundry.API.Tests
view MockObjects/MockSystemFactory.cs @ 9:f96169484ba5
Fixes #44 - Fix API tests
* Rename MockFactory to MockSystemFactory
* Update test Race and System files
* Update broken test to match current load methods
* Remove unused "FixedFileWarFoundryLoader" that isn't applicable to new load method
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 15 Mar 2009 15:21:58 +0000 |
parents | |
children | 8d9d49332d44 |
line wrap: on
line source
// This file (MockSystemFactory.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 IBBoard. // // The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license. using System; using System.IO; using IBBoard.WarFoundry.API.Objects; using ICSharpCode.SharpZipLib.Zip; namespace IBBoard.WarFoundry.API.Factories { public class MockSystemFactory : AbstractNativeWarFoundryFactory { public MockSystemFactory() { } protected override bool CheckCanFindArmyFileContent(ZipFile file) { return false; } protected override bool CheckCanFindRaceFileContent(ZipFile file) { return false; } protected override bool CheckCanFindSystemFileContent(ZipFile file) { return true; } protected override Army CreateArmyFromStream (ZipFile file, Stream dataStream) { throw new NotImplementedException (); } protected override GameSystem CreateGameSystemFromStream (ZipFile file, Stream dataStream) { return new GameSystem("test", "Test System", this); } protected override Race CreateRaceFromStream (ZipFile file, Stream dataStream) { throw new NotImplementedException (); } protected override Stream GetArmyDataStream (ZipFile file) { throw new NotImplementedException (); } protected override Stream GetGameSystemDataStream (ZipFile file) { return new MemoryStream(); } protected override Stream GetRaceDataStream (ZipFile file) { throw new NotImplementedException (); } } }