comparison API/Objects/Mock/MockGameSystem.cs @ 12:a4e7e938d065

Re #195: Setting max equipment without min may not function correctly * Initial commit of tests for limits (percentage and numeric) Also: * Reshuffle and refactoring of existing tests * Additional mocks required by the new tests
author IBBoard <dev@ibboard.co.uk>
date Mon, 12 Oct 2009 19:42:30 +0000
parents
children 49c5e24decb9
comparison
equal deleted inserted replaced
11:8d9d49332d44 12:a4e7e938d065
1 // This file (MockGameSystem.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 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
5 using System;
6 using IBBoard.WarFoundry.API.Factories.Mock;
7 using IBBoard.WarFoundry.API.Objects;
8
9 namespace IBBoard.WarFoundry.API.Objects.Mock
10 {
11 public class MockGameSystem : GameSystem
12 {
13 private static MockGameSystem mock;
14
15 public static MockGameSystem GetMockSystem()
16 {
17 if (mock == null)
18 {
19 mock = new MockGameSystem();
20 }
21
22 return mock;
23 }
24
25 public MockGameSystem () : base("mocksystem", "Mock Game System", MockSystemFactory.GetMockFactory())
26 {
27 }
28 }
29 }