annotate API/Objects/GameSystemTest.cs @ 218:d60d93b787dc

Re #379: Fix requirements * Fix unit test - we had two limits in one requirement, not just one
author IBBoard <dev@ibboard.co.uk>
date Tue, 06 Mar 2012 20:32:19 +0000
parents 2ae80631ec9c
children e173c5512067
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 using System;
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 using NUnit.Framework;
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 using IBBoard.WarFoundry.API.Factories;
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 using NUnit.Framework.SyntaxHelpers;
137
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
5 using System.Reflection;
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
6 using IBBoard.NUnit;
82
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 namespace IBBoard.WarFoundry.API.Objects
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 [TestFixture()]
137
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
11 public class GameSystemTest : AbstractEqualityTest<GameSystem>
82
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 [Test()]
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 public void TestPointsSingularAbbreviation ()
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 Assert.That(system.GetPointsAbbrev(1), Is.EqualTo(""));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 system.SystemPtsAbbrevSingle = "pt";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 system.SystemPtsAbbrevPlural = "pts";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 Assert.That(system.GetPointsAbbrev(1), Is.EqualTo("pt"));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
21 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
22
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
23 [Test()]
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
24 public void TestPointsPluralAbbreviation ()
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
25 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 Assert.That(system.GetPointsAbbrev(2), Is.EqualTo(""));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 system.SystemPtsAbbrevSingle = "pt";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
29 system.SystemPtsAbbrevPlural = "pts";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
30 Assert.That(system.GetPointsAbbrev(2), Is.EqualTo("pts"));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
31 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
32
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
33 [Test()]
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
34 public void TestPointsZeroAbbreviation ()
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
35 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
36 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
37 Assert.That(system.GetPointsAbbrev(0), Is.EqualTo(""));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
38 system.SystemPtsAbbrevSingle = "pt";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
39 system.SystemPtsAbbrevPlural = "pts";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
40 Assert.That(system.GetPointsAbbrev(0), Is.EqualTo("pts"));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
41 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
42
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
43 [Test()]
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
44 public void TestPointsSingularName ()
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
45 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
46 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
47 Assert.That(system.GetPointsName(1), Is.EqualTo(""));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
48 system.SystemPtsNameSingle = "pt";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
49 system.SystemPtsNamePlural = "pts";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
50 Assert.That(system.GetPointsName(1), Is.EqualTo("pt"));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
51 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
52
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
53 [Test()]
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
54 public void TestPointsPluralName ()
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
55 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
56 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
57 Assert.That(system.GetPointsName(2), Is.EqualTo(""));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
58 system.SystemPtsNameSingle = "pt";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
59 system.SystemPtsNamePlural = "pts";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
60 Assert.That(system.GetPointsName(2), Is.EqualTo("pts"));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
61 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
62
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
63 [Test()]
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
64 public void TestPointsZeroName ()
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
65 {
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
66 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
67 Assert.That(system.GetPointsName(0), Is.EqualTo(""));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
68 system.SystemPtsNameSingle = "pt";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
69 system.SystemPtsNamePlural = "pts";
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
70 Assert.That(system.GetPointsName(0), Is.EqualTo("pts"));
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
71 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
72
84
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
73 [Test()]
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
74 public void TestPointsSingularNameFallsBackToPlural ()
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
75 {
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
76 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
77 Assert.That(system.GetPointsName(1), Is.EqualTo(""));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
78 system.SystemPtsNamePlural = "pts";
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
79 Assert.That(system.GetPointsName(1), Is.EqualTo("pts"));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
80 }
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
81
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
82 [Test()]
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
83 public void TestPointsPluralNameFallsBackToSingular ()
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
84 {
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
85 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
86 Assert.That(system.GetPointsName(2), Is.EqualTo(""));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
87 system.SystemPtsNameSingle = "pt";
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
88 Assert.That(system.GetPointsName(2), Is.EqualTo("pt"));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
89 }
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
90
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
91 [Test()]
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
92 public void TestPointsZeroNameFallsBackToSingular ()
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
93 {
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
94 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
95 Assert.That(system.GetPointsName(0), Is.EqualTo(""));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
96 system.SystemPtsNameSingle = "pt";
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
97 Assert.That(system.GetPointsName(0), Is.EqualTo("pt"));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
98 }
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
99
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
100 [Test()]
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
101 public void TestPointsSingularAbbreviationFallsBackToPlural ()
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
102 {
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
103 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
104 Assert.That(system.GetPointsAbbrev(1), Is.EqualTo(""));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
105 system.SystemPtsAbbrevPlural = "pts";
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
106 Assert.That(system.GetPointsAbbrev(1), Is.EqualTo("pts"));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
107 }
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
108
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
109 [Test()]
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
110 public void TestPointsPluralAbbreviationFallsBackToSingular ()
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
111 {
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
112 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
113 Assert.That(system.GetPointsAbbrev(2), Is.EqualTo(""));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
114 system.SystemPtsAbbrevSingle = "pt";
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
115 Assert.That(system.GetPointsAbbrev(2), Is.EqualTo("pt"));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
116 }
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
117
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
118 [Test()]
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
119 public void TestPointsZeroAbbreviationFallsBackToSingular ()
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
120 {
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
121 GameSystem system = new GameSystem("id", "name", new DummyWarFoundryFactory());
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
122 Assert.That(system.GetPointsAbbrev(0), Is.EqualTo(""));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
123 system.SystemPtsAbbrevSingle = "pt";
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
124 Assert.That(system.GetPointsAbbrev(0), Is.EqualTo("pt"));
168c5aab34bb Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents: 82
diff changeset
125 }
137
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
126
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
127 public override GameSystem GetObject ()
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
128 {
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
129 DummyWarFoundryFactory factory = new DummyWarFoundryFactory();
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
130 return new GameSystem("system", "system", factory);
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
131 }
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
132
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
133 public override GameSystem GetSameObject ()
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
134 {
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
135 DummyWarFoundryFactory factory = new DummyWarFoundryFactory();
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
136 return new GameSystem("system", "system", factory);
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
137 }
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
138
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
139 public override GameSystem GetDifferentObject ()
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
140 {
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
141 DummyWarFoundryFactory factory = new DummyWarFoundryFactory();
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
142 return new GameSystem("system2", "another system", factory);
081b48413f6d Re #140: Add equality methods to WarFoundry objects
IBBoard <dev@ibboard.co.uk>
parents: 84
diff changeset
143 }
82
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
144 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
145 }
bbcc46371364 Re #99: Define "points" values in GameSystem
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
146