Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
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 |
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 | 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 | 12 |
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 | 15 } |
16 | |
17 | |
25 | 18 public MockNumericAmountUnitEquipmentItem (int limit) : this(limit, limit) |
19 | 19 { |
25 | 20 } |
21 | |
22 public MockNumericAmountUnitEquipmentItem(int min, int max) : base(new MockEquipmentItem(), new MockUnitType()) | |
23 { | |
24 MinLimit = new NumericSizeConstrainedLimit(min); | |
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 } |