annotate API/Objects/Mock/MockNumericAmountUnitEquipmentItem.cs @ 239:370bec16a364 default tip

Add initial testing for equipment with type (incomplete)
author IBBoard <dev@ibboard.co.uk>
date Sun, 16 Oct 2016 20:29:35 +0100
parents d48e73488838
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
14
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (MockUnitEquipmentItem.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 IBBoard
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
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.
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System;
19
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
6 using IBBoard.Limits;
14
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 namespace IBBoard.WarFoundry.API.Objects.Mock
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 {
15
1119b6f48e8e Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents: 14
diff changeset
10 public class MockNumericAmountUnitEquipmentItem : UnitEquipmentItem
14
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 {
19
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
12
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
13 public MockNumericAmountUnitEquipmentItem () : this(5)
14
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 {
19
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
15 }
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
16
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
17
25
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
18 public MockNumericAmountUnitEquipmentItem (int limit) : this(limit, limit)
19
9b23e72ba3cf Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 15
diff changeset
19 {
25
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
20 }
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
21
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
22 public MockNumericAmountUnitEquipmentItem(int min, int max) : base(new MockEquipmentItem(), new MockUnitType())
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
23 {
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
24 MinLimit = new NumericSizeConstrainedLimit(min);
d48e73488838 Re #198: Add equipment slots
IBBoard <dev@ibboard.co.uk>
parents: 19
diff changeset
25 MaxLimit = new NumericSizeConstrainedLimit(max);
14
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
26 }
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
27 }
19fc7a733064 Re #198: Add slots with counts to units
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
28 }