changeset 19:9b23e72ba3cf

Re #198: Add equipment slots * Fix unit tests
author IBBoard <dev@ibboard.co.uk>
date Tue, 27 Oct 2009 20:00:54 +0000
parents e8e7554fb7f3
children beaf7a48a93f
files API/Objects/Mock/MockNumericAmountUnitEquipmentItem.cs API/Objects/Mock/MockPercentageAmountUnitEquipmentItem.cs API/Objects/Mock/MockUnit.cs API/Objects/UnitEquipmentItemTest.cs API/Objects/UnitTest.cs API/Util/UnitEquipmentUtilTest.cs IBBoard.WarFoundry.API.Tests.csproj
diffstat 7 files changed, 133 insertions(+), 55 deletions(-) [+]
line diff
     1.1 --- a/API/Objects/Mock/MockNumericAmountUnitEquipmentItem.cs	Sat Oct 24 18:59:30 2009 +0000
     1.2 +++ b/API/Objects/Mock/MockNumericAmountUnitEquipmentItem.cs	Tue Oct 27 20:00:54 2009 +0000
     1.3 @@ -3,16 +3,21 @@
     1.4  // 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.
     1.5  
     1.6  using System;
     1.7 +using IBBoard.Limits;
     1.8  
     1.9  namespace IBBoard.WarFoundry.API.Objects.Mock
    1.10  {
    1.11  	public class MockNumericAmountUnitEquipmentItem : UnitEquipmentItem
    1.12  	{
    1.13 +		
    1.14 +		public MockNumericAmountUnitEquipmentItem () : this(5)
    1.15 +		{
    1.16 +		}
    1.17 +			
    1.18  
    1.19 -		public MockNumericAmountUnitEquipmentItem () : base(new MockEquipmentItem(), new MockUnitType())
    1.20 +		public MockNumericAmountUnitEquipmentItem (int limit) : base(new MockEquipmentItem(), new MockUnitType())
    1.21  		{
    1.22 -			MaxPercentage = 100; //TODO: This seems odd - maybe IsRatio should be "!=0"
    1.23 -			MaxNumber = WarFoundryCore.INFINITY;
    1.24 +			MaxLimit = new NumericSizeConstrainedLimit(limit);
    1.25  		}
    1.26  	}
    1.27  }
     2.1 --- a/API/Objects/Mock/MockPercentageAmountUnitEquipmentItem.cs	Sat Oct 24 18:59:30 2009 +0000
     2.2 +++ b/API/Objects/Mock/MockPercentageAmountUnitEquipmentItem.cs	Tue Oct 27 20:00:54 2009 +0000
     2.3 @@ -3,6 +3,7 @@
     2.4  // 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.
     2.5  
     2.6  using System;
     2.7 +using IBBoard.Limits;
     2.8  using IBBoard.WarFoundry.API.Objects;
     2.9  
    2.10  namespace IBBoard.WarFoundry.API.Objects.Mock
    2.11 @@ -15,7 +16,7 @@
    2.12  		
    2.13  		public MockPercentageAmountUnitEquipmentItem(EquipmentItem item, UnitType type) : base(item, type)
    2.14  		{
    2.15 -			MaxPercentage = 50;
    2.16 +			MaxLimit = new SimpleRoundedPercentageLimit(50, false);
    2.17  		}
    2.18  	}
    2.19  }
     3.1 --- a/API/Objects/Mock/MockUnit.cs	Sat Oct 24 18:59:30 2009 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,21 +0,0 @@
     3.4 -// This file (MockUnit.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 IBBoard
     3.5 -// 
     3.6 -// 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.
     3.7 -
     3.8 -using System;
     3.9 -using IBBoard.WarFoundry.API.Objects;
    3.10 -
    3.11 -namespace IBBoard.WarFoundry.API.Objects.Mock
    3.12 -{
    3.13 -	public class MockUnit : Unit
    3.14 -	{
    3.15 -		public MockUnit (UnitType unitType, ArmyCategory parentCat) : base(unitType, parentCat)
    3.16 -		{
    3.17 -		}
    3.18 -		
    3.19 -		protected override string DefaultName ()
    3.20 -		{
    3.21 -			return "Default Name";
    3.22 -		}
    3.23 -	}
    3.24 -}
     4.1 --- a/API/Objects/UnitEquipmentItemTest.cs	Sat Oct 24 18:59:30 2009 +0000
     4.2 +++ b/API/Objects/UnitEquipmentItemTest.cs	Tue Oct 27 20:00:54 2009 +0000
     4.3 @@ -4,6 +4,7 @@
     4.4  
     4.5  using System;
     4.6  using NUnit.Framework;
     4.7 +using IBBoard.Limits;
     4.8  using IBBoard.WarFoundry.API.Objects.Mock;
     4.9  
    4.10  namespace IBBoard.WarFoundry.API.Objects
    4.11 @@ -11,6 +12,7 @@
    4.12  	[TestFixture()]
    4.13  	public class UnitEquipmentItemTest
    4.14  	{
    4.15 +		/*
    4.16  		[Test()]
    4.17  		public void DefaultMinMaxNumberLimitsAreZero()
    4.18  		{
    4.19 @@ -136,5 +138,21 @@
    4.20  			item.MinPercentage = 50;
    4.21  			item.MaxPercentage = 50;
    4.22  		}
    4.23 +		*/
    4.24 +		[Test()]
    4.25 +		public void TestSettingOnlyMinLimitSetsMatchingMaxLimit()
    4.26 +		{
    4.27 +			UnitEquipmentItem item = new UnitEquipmentItem(new MockEquipmentItem(), new MockUnitType());
    4.28 +			item.MinLimit = new UnlimitedLimit();
    4.29 +			Assert.AreEqual(item.MinLimit, item.MaxLimit);
    4.30 +		}
    4.31 +		
    4.32 +		[Test()]
    4.33 +		public void TestSettingOnlyMaxLimitSetsMatchingMinLimit()
    4.34 +		{
    4.35 +			UnitEquipmentItem item = new UnitEquipmentItem(new MockEquipmentItem(), new MockUnitType());
    4.36 +			item.MaxLimit = new UnlimitedLimit();
    4.37 +			Assert.AreEqual(item.MaxLimit, item.MinLimit);
    4.38 +		}
    4.39  	}
    4.40  }
     5.1 --- a/API/Objects/UnitTest.cs	Sat Oct 24 18:59:30 2009 +0000
     5.2 +++ b/API/Objects/UnitTest.cs	Tue Oct 27 20:00:54 2009 +0000
     5.3 @@ -5,6 +5,7 @@
     5.4  using System;
     5.5  using NUnit.Framework;
     5.6  using IBBoard.WarFoundry.API.Objects.Mock;
     5.7 +using IBBoard.Limits;
     5.8  
     5.9  namespace IBBoard.WarFoundry.API.Objects
    5.10  {
    5.11 @@ -14,21 +15,22 @@
    5.12  		[Test()]
    5.13  		public void TestAddNumericAmountEquipmentAddsEquipmentSelection()
    5.14  		{
    5.15 -			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem();
    5.16 +			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem(5);
    5.17 +			Assert.IsTrue(equip.MaxLimit is Limits.NumericSizeConstrainedLimit);
    5.18  			UnitType unitType = equip.EquipmentForUnit;
    5.19 -			Unit unit = new Unit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.20 -			unit.SetEquipmentAmount(equip, WarFoundryCore.INFINITY);
    5.21 -			Assert.AreEqual(WarFoundryCore.INFINITY, unit.GetEquipmentAmount(equip));
    5.22 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
    5.23 +			unit.SetEquipmentAmount(equip, 5);
    5.24 +			Assert.AreEqual(5, unit.GetEquipmentAmount(equip));
    5.25  			Assert.IsFalse(unit.GetEquipmentAmountIsRatio(equip));
    5.26  		}
    5.27  		
    5.28  		[Test()]
    5.29  		public void TestRemoveNumericAmountEquipmentRemovesEquipmentSelection()
    5.30  		{
    5.31 -			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem();
    5.32 +			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem(5);
    5.33  			UnitType unitType = equip.EquipmentForUnit;
    5.34 -			Unit unit = new Unit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.35 -			unit.SetEquipmentAmount(equip, WarFoundryCore.INFINITY);
    5.36 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
    5.37 +			unit.SetEquipmentAmount(equip, 5);
    5.38  			unit.SetEquipmentAmount(equip, 0);
    5.39  			Assert.AreEqual(0, unit.GetEquipmentAmount(equip));
    5.40  		}
    5.41 @@ -38,7 +40,7 @@
    5.42  		{
    5.43  			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    5.44  			UnitType unitType = equip.EquipmentForUnit;
    5.45 -			Unit unit = new Unit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.46 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
    5.47  			unit.SetEquipmentRatio(equip, 50);
    5.48  			Assert.AreEqual(50, unit.GetEquipmentAmount(equip));
    5.49  			Assert.IsTrue(unit.GetEquipmentAmountIsRatio(equip));
    5.50 @@ -49,7 +51,7 @@
    5.51  		{
    5.52  			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    5.53  			UnitType unitType = equip.EquipmentForUnit;
    5.54 -			Unit unit = new Unit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.55 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
    5.56  			unit.SetEquipmentRatio(equip, 50);
    5.57  			unit.SetEquipmentRatio(equip, 0);
    5.58  			Assert.AreEqual(0, unit.GetEquipmentAmount(equip));
    5.59 @@ -60,7 +62,7 @@
    5.60  		{
    5.61  			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    5.62  			UnitType unitType = equip.EquipmentForUnit;
    5.63 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.64 +			Unit unit = new Unit("unit", "Test Unit", 5, unitType, new MockArmyCategory(unitType.MainCategory));
    5.65  			unit.Size = 5;
    5.66  			unit.SetEquipmentAmount(equip, 2);
    5.67  			Assert.AreEqual(2, unit.GetEquipmentAmount(equip));
    5.68 @@ -72,8 +74,7 @@
    5.69  		{
    5.70  			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    5.71  			UnitType unitType = equip.EquipmentForUnit;
    5.72 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.73 -			unit.Size = 5;
    5.74 +			Unit unit = new Unit("unit", "Test Unit", 5, unitType, new MockArmyCategory(unitType.MainCategory));
    5.75  			unit.SetEquipmentAmount(equip, 2);
    5.76  			unit.SetEquipmentAmount(equip, 0);
    5.77  			Assert.AreEqual(0, unit.GetEquipmentAmount(equip));
    5.78 @@ -83,7 +84,7 @@
    5.79  		public void TestAmountInSlotWithNoItems()
    5.80  		{
    5.81  			UnitType unitType = new MockUnitType();
    5.82 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.83 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
    5.84  			Assert.AreEqual(0, unit.GetEquipmentAmountInSlot(""));
    5.85  		}
    5.86  		
    5.87 @@ -94,7 +95,7 @@
    5.88  			string slotName = "TestSlot";
    5.89  			equip.SlotName = slotName;
    5.90  			UnitType unitType = equip.EquipmentForUnit;
    5.91 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
    5.92 +			Unit unit = new Unit("unit", "Test Unit", 5, unitType, new MockArmyCategory(unitType.MainCategory));
    5.93  			unit.Size = 5;
    5.94  			unit.SetEquipmentRatio(equip, 50);
    5.95  			Assert.AreEqual(2, unit.GetEquipmentAmountInSlot(slotName));
    5.96 @@ -107,15 +108,14 @@
    5.97  			string slotName = "TestSlot";
    5.98  			equip1.SlotName = slotName;
    5.99  			UnitType unitType = equip1.EquipmentForUnit;
   5.100 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
   5.101 -			unit.Size = 10;
   5.102 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
   5.103  			unit.SetEquipmentRatio(equip1, 50);
   5.104  			UnitEquipmentItem equip2 = new MockPercentageAmountUnitEquipmentItem(new MockEquipmentItem("equip2"), unitType);
   5.105  			equip2.SlotName = slotName;
   5.106 -			equip2.MinPercentage = 0;
   5.107 +			equip2.MinLimit = new SimpleRoundedPercentageLimit(0);
   5.108  			UnitEquipmentItem equip3 = new MockPercentageAmountUnitEquipmentItem(new MockEquipmentItem("equip3"), unitType);
   5.109  			equip3.SlotName = slotName;
   5.110 -			equip3.MinPercentage = 0;
   5.111 +			equip3.MinLimit = new SimpleRoundedPercentageLimit(0);
   5.112  			unit.SetEquipmentRatio(equip2, 25);
   5.113  			unit.SetEquipmentRatio(equip3, 10);
   5.114  			Assert.AreEqual(8, unit.GetEquipmentAmountInSlot(slotName));
   5.115 @@ -128,8 +128,7 @@
   5.116  			string slotName = "TestSlot";
   5.117  			equip.SlotName = slotName;
   5.118  			UnitType unitType = equip.EquipmentForUnit;
   5.119 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
   5.120 -			unit.Size = 5;
   5.121 +			Unit unit = new Unit("unit", "Test Unit", 5, unitType, new MockArmyCategory(unitType.MainCategory));
   5.122  			unit.SetEquipmentRatio(equip, 50);
   5.123  			unit.SetEquipmentRatio(equip, 0);
   5.124  			Assert.AreEqual(0, unit.GetEquipmentAmountInSlot(slotName));
   5.125 @@ -142,15 +141,14 @@
   5.126  			string slotName = "TestSlot";
   5.127  			equip1.SlotName = slotName;
   5.128  			UnitType unitType = equip1.EquipmentForUnit;
   5.129 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
   5.130 -			unit.Size = 10;
   5.131 +			Unit unit = new Unit("unit", "Test Unit", 10, unitType, new MockArmyCategory(unitType.MainCategory));
   5.132  			unit.SetEquipmentRatio(equip1, 50);
   5.133  			UnitEquipmentItem equip2 = new MockPercentageAmountUnitEquipmentItem(new MockEquipmentItem("equip2"), unitType);
   5.134  			equip2.SlotName = slotName;
   5.135 -			equip2.MinPercentage = 0;
   5.136 +			equip2.MinLimit = new SimpleRoundedPercentageLimit(0);
   5.137  			UnitEquipmentItem equip3 = new MockPercentageAmountUnitEquipmentItem(new MockEquipmentItem("equip3"), unitType);
   5.138  			equip3.SlotName = slotName;
   5.139 -			equip3.MinPercentage = 0;
   5.140 +			equip3.MinLimit = new SimpleRoundedPercentageLimit(0);
   5.141  			unit.SetEquipmentRatio(equip2, 25);
   5.142  			unit.SetEquipmentRatio(equip3, 10);
   5.143  			unit.SetEquipmentAmount(equip1, 0);
     6.1 --- a/API/Util/UnitEquipmentUtilTest.cs	Sat Oct 24 18:59:30 2009 +0000
     6.2 +++ b/API/Util/UnitEquipmentUtilTest.cs	Tue Oct 27 20:00:54 2009 +0000
     6.3 @@ -16,22 +16,100 @@
     6.4  		[Test()]
     6.5  		public void TestGetMaxEquipmentCountForFixedLimitItemOnDefaultSlot()
     6.6  		{
     6.7 -			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem();
     6.8 -			equip.MaxNumber = 3;
     6.9 +			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem(3);
    6.10  			UnitType unitType = equip.EquipmentForUnit;
    6.11 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
    6.12 +			Unit unit = GetUnit (unitType);
    6.13  			Assert.AreEqual(3, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.14  		}
    6.15 +
    6.16  		
    6.17  		[Test()]
    6.18  		public void TestGetMaxEquipmentCountForFixedLimitItemOnNumberLimitedSlot()
    6.19  		{
    6.20  			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem();
    6.21 -			equip.MaxNumber = 3;
    6.22 +			equip.MaxLimit = new NumericSizeConstrainedLimit(3);
    6.23 +			equip.SlotName = "slot";
    6.24  			UnitType unitType = equip.EquipmentForUnit;
    6.25  			unitType.AddEquipmentSlot("slot", new AbsoluteNumericLimit(2));
    6.26 -			Unit unit = new MockUnit(unitType, new MockArmyCategory(unitType.MainCategory));
    6.27 +			Unit unit = GetUnit(unitType);
    6.28  			Assert.AreEqual(2, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.29  		}
    6.30 +		
    6.31 +		[Test()]
    6.32 +		public void TestGetMaxEquipmentCountForFixedLimitItemOnPercentageLimitedSlot()
    6.33 +		{
    6.34 +			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem();
    6.35 +			equip.MaxLimit = new NumericSizeConstrainedLimit(7);
    6.36 +			equip.SlotName = "slot";
    6.37 +			UnitType unitType = equip.EquipmentForUnit;
    6.38 +			unitType.AddEquipmentSlot("slot", new SimpleRoundedPercentageLimit(50, false));
    6.39 +			Unit unit = GetUnit(unitType);
    6.40 +			Assert.AreEqual(5, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.41 +		}
    6.42 +		
    6.43 +		[Test()]
    6.44 +		public void TestGetMaxEquipmentCountForFixedLimitItemOnNumberLimitedSlotWithExistingEquipment()
    6.45 +		{
    6.46 +			UnitEquipmentItem equip = new MockNumericAmountUnitEquipmentItem();
    6.47 +			equip.MaxLimit = new NumericSizeConstrainedLimit(3);
    6.48 +			equip.SlotName = "slot";
    6.49 +			UnitType unitType = equip.EquipmentForUnit;
    6.50 +			unitType.AddEquipmentSlot("slot", new AbsoluteNumericLimit(6));
    6.51 +			Unit unit =GetUnit(unitType);
    6.52 +			UnitEquipmentItem equip2 = new MockPercentageAmountUnitEquipmentItem(new MockEquipmentItem("equip2"), unitType);
    6.53 +			equip2.SlotName = "slot";
    6.54 +			unit.SetEquipmentAmount(equip2, 5);
    6.55 +			Assert.AreEqual(1, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.56 +		}
    6.57 +		
    6.58 +		[Test()]
    6.59 +		public void TestGetMaxEquipmentCountForPercentageLimitItemOnDefaultSlot()
    6.60 +		{
    6.61 +			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    6.62 +			UnitType unitType = equip.EquipmentForUnit;
    6.63 +			Unit unit = GetUnit(unitType);
    6.64 +			Assert.AreEqual(5, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.65 +		}
    6.66 +		
    6.67 +		[Test()]
    6.68 +		public void TestGetMaxEquipmentCountForPercentageLimitItemOnNumberLimitedSlot()
    6.69 +		{
    6.70 +			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    6.71 +			equip.SlotName = "slot";
    6.72 +			UnitType unitType = equip.EquipmentForUnit;
    6.73 +			unitType.AddEquipmentSlot("slot", new AbsoluteNumericLimit(2));
    6.74 +			Unit unit = GetUnit(unitType);
    6.75 +			Assert.AreEqual(2, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.76 +		}
    6.77 +		
    6.78 +		[Test()]
    6.79 +		public void TestGetMaxEquipmentCountForPercentageLimitItemOnPercentageLimitedSlot()
    6.80 +		{
    6.81 +			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    6.82 +			equip.SlotName = "slot";
    6.83 +			UnitType unitType = equip.EquipmentForUnit;
    6.84 +			unitType.AddEquipmentSlot("slot", new SimpleRoundedPercentageLimit(25, false));
    6.85 +			Unit unit = GetUnit(unitType);
    6.86 +			Assert.AreEqual(2, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
    6.87 +		}
    6.88 +		
    6.89 +		[Test()]
    6.90 +		public void TestGetMaxEquipmentCountForPercentageLimitItemOnNumberLimitedSlotWithExistingEquipment()
    6.91 +		{
    6.92 +			UnitEquipmentItem equip = new MockPercentageAmountUnitEquipmentItem();
    6.93 +			equip.SlotName = "slot";
    6.94 +			UnitType unitType = equip.EquipmentForUnit;
    6.95 +			unitType.AddEquipmentSlot("slot", new AbsoluteNumericLimit(6));
    6.96 +			Unit unit = GetUnit(unitType);
    6.97 +			UnitEquipmentItem equip2 = new MockPercentageAmountUnitEquipmentItem(new MockEquipmentItem("equip2"), unitType);
    6.98 +			equip2.SlotName = "slot";
    6.99 +			unit.SetEquipmentAmount(equip2, 5);
   6.100 +			Assert.AreEqual(1, UnitEquipmentUtil.GetMaxEquipmentCount(unit, equip));
   6.101 +		}
   6.102 +
   6.103 +		private static Unit GetUnit (UnitType unitType)
   6.104 +		{
   6.105 +			return new Unit ("unit", "Test Unit", 10, unitType, new MockArmyCategory (unitType.MainCategory));
   6.106 +		}
   6.107  	}
   6.108  }
     7.1 --- a/IBBoard.WarFoundry.API.Tests.csproj	Sat Oct 24 18:59:30 2009 +0000
     7.2 +++ b/IBBoard.WarFoundry.API.Tests.csproj	Tue Oct 27 20:00:54 2009 +0000
     7.3 @@ -55,7 +55,6 @@
     7.4      <Compile Include="API\Objects\Mock\MockCategory.cs" />
     7.5      <Compile Include="API\Objects\Mock\MockNumericAmountUnitEquipmentItem.cs" />
     7.6      <Compile Include="API\Objects\Mock\MockPercentageAmountUnitEquipmentItem.cs" />
     7.7 -    <Compile Include="API\Objects\Mock\MockUnit.cs" />
     7.8      <Compile Include="API\Util\UnitEquipmentUtilTest.cs" />
     7.9    </ItemGroup>
    7.10    <ItemGroup>