comparison API/Factories/Mock/MockNativeWarFoundryFactory.cs @ 165:453640610ef9

Re #94: Loading files is too slow * Add unit test to check loading time - we'll allow failure to be 10x slower
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Sep 2011 20:28:17 +0100
parents
children
comparison
equal deleted inserted replaced
164:7b90f41f27e5 165:453640610ef9
1 // This file (MockNativeWarFoundryFactory.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2011 IBBoard
2 //
3 // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license.
4 using System;
5 using ICSharpCode.SharpZipLib.Zip;
6 using System.Collections.Generic;
7 using IBBoard.WarFoundry.API.Objects;
8 using System.IO;
9
10 namespace IBBoard.WarFoundry.API.Factories.Mock
11 {
12 public class MockNativeWarFoundryFactory : AbstractNativeWarFoundryFactory
13 {
14 public MockNativeWarFoundryFactory()
15 {
16 //Do nothing special
17 }
18
19 protected override bool CheckCanFindSystemFileContent(ZipFile file)
20 {
21 return false;
22 }
23
24 protected override bool CheckCanFindRaceFileContent(ZipFile file)
25 {
26 return false;
27 }
28
29 protected override bool CheckCanFindArmyFileContent(ZipFile file)
30 {
31 return false;
32 }
33
34 protected override ICollection<ZipEntry> GetArmyZipEntries(ZipFile file)
35 {
36 return new List<ZipEntry>().AsReadOnly();
37 }
38
39 protected override Army CreateArmyFromStream(ZipFile file, Stream dataStream)
40 {
41 return null;
42 }
43
44 protected override ICollection<ZipEntry> GetRaceZipEntries(ZipFile file)
45 {
46 return new List<ZipEntry>().AsReadOnly();
47 }
48
49 protected override Race CreateRaceFromStream(ZipFile file, Stream dataStream)
50 {
51 return null;
52 }
53
54 protected override ICollection<ZipEntry> GetGameSystemZipEntries(ZipFile file)
55 {
56 return new List<ZipEntry>().AsReadOnly();
57 }
58
59 protected override GameSystem CreateGameSystemFromStream(ZipFile file, Stream dataStream)
60 {
61 return null;
62 }
63 }
64 }
65