Mercurial > repos > IBBoard.WarFoundry.API.Tests
view IBBoard.WarFoundry.API.Tests.csproj @ 155:3725fd449c77
Re #353: Handle unloaded units being referenced outside factory
* Add mock factory and use it in tests
All tests now pass (including tests that started failing because of unit loading order - triggered by requirement changes)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 04 Jul 2011 20:03:47 +0000 |
parents | b86955aa252c |
children | 17c5030485dc |
line wrap: on
line source
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProductVersion>9.0.30729</ProductVersion> <SchemaVersion>2.0</SchemaVersion> <ProjectGuid>{B20E808D-878E-4F6D-B1E3-84A9A49905CB}</ProjectGuid> <OutputType>Library</OutputType> <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>IBBoard.WarFoundry</RootNamespace> <AssemblyName>IBBoard.WarFoundry.API.Tests</AssemblyName> <FileUpgradeFlags> </FileUpgradeFlags> <UpgradeBackupLocation> </UpgradeBackupLocation> <OldToolsVersion>2.0</OldToolsVersion> <TargetFrameworkSubset> </TargetFrameworkSubset> <IsWebBootstrapper>false</IsWebBootstrapper> <TargetFrameworkVersion>v2.0</TargetFrameworkVersion> <PublishUrl>publish\</PublishUrl> <Install>true</Install> <InstallFrom>Disk</InstallFrom> <UpdateEnabled>false</UpdateEnabled> <UpdateMode>Foreground</UpdateMode> <UpdateInterval>7</UpdateInterval> <UpdateIntervalUnits>Days</UpdateIntervalUnits> <UpdatePeriodically>false</UpdatePeriodically> <UpdateRequired>false</UpdateRequired> <MapFileExtensions>true</MapFileExtensions> <ApplicationRevision>0</ApplicationRevision> <ApplicationVersion>1.0.0.%2a</ApplicationVersion> <UseApplicationTrust>false</UseApplicationTrust> <BootstrapperEnabled>true</BootstrapperEnabled> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <OutputPath>bin\Debug\</OutputPath> <DefineConstants>DEBUG;TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>pdbonly</DebugType> <Optimize>true</Optimize> <OutputPath>bin\Release\</OutputPath> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <!-- To modify your build process, add your task inside one of the targets below and uncomment it. Other similar extension points exist, see Microsoft.Common.targets. <Target Name="BeforeBuild"> </Target> <Target Name="AfterBuild"> </Target> --> <ItemGroup> <Compile Include="MockObjects\MockRaceZipFile.cs" /> <Compile Include="MockObjects\MockSystemZipFile.cs" /> <Compile Include="API\WarFoundryLoaderTest.cs" /> <Compile Include="API\Objects\UnitEquipmentItemTest.cs" /> <Compile Include="API\Objects\Mock\MockUnitType.cs" /> <Compile Include="API\Objects\Mock\MockEquipmentItem.cs" /> <Compile Include="API\Objects\Mock\MockRace.cs" /> <Compile Include="API\Factories\Mock\MockSystemFactory.cs" /> <Compile Include="API\Objects\Mock\MockGameSystem.cs" /> <Compile Include="API\Objects\UnitTest.cs" /> <Compile Include="API\Objects\Mock\MockArmyCategory.cs" /> <Compile Include="API\Objects\Mock\MockArmy.cs" /> <Compile Include="API\Objects\Mock\MockCategory.cs" /> <Compile Include="API\Objects\Mock\MockNumericAmountUnitEquipmentItem.cs" /> <Compile Include="API\Objects\Mock\MockPercentageAmountUnitEquipmentItem.cs" /> <Compile Include="API\Util\UnitEquipmentUtilTest.cs" /> <Compile Include="API\Factories\Xml\WarFoundryXmlRaceFactoryTest.cs" /> <Compile Include="API\FixedGameSystemWarFoundryLoader.cs" /> <Compile Include="API\Factories\Xml\SingleXmlObjectLoader.cs" /> <Compile Include="API\Factories\Xml\WarFoundryXmlFactoryUtilTest.cs" /> <Compile Include="API\Objects\UnitTypeTest.cs" /> <Compile Include="API\Factories\Xml\WarFoundryXmlArmyParserTest.cs" /> <Compile Include="API\FixedObjectWarFoundryLoader.cs" /> <Compile Include="API\Factories\Xml\WarFoundryXmlLimitParserTest.cs" /> <Compile Include="API\Factories\Xml\WarFoundryXmlSystemFactoryTest.cs" /> <Compile Include="MockObjects\MockWarFoundryLoader.cs" /> <Compile Include="API\AbstractWarFoundryLoaderTests.cs" /> <Compile Include="API\Objects\GameSystemTest.cs" /> <Compile Include="API\Factories\Xml\WarFoundryXmlFactoryTests.cs" /> <Compile Include="API\EventListeningWarFoundryLoader.cs" /> <Compile Include="API\Savers\IWarFoundryFileSaverTests.cs" /> <Compile Include="API\Objects\Requirement\RequiresAtLeastNUnitsRequirementTest.cs" /> <Compile Include="API\Objects\Requirement\UnitRequiresAtLeastNUnitsRequirementTest.cs" /> <Compile Include="API\Objects\Requirement\ValidationTests.cs" /> <Compile Include="API\Objects\Requirement\UnitRequiresNoMoreThanNOfUnitTypeRequirementTest.cs" /> <Compile Include="API\Objects\Requirement\RequiresNoMoreThanNOfUnitTypeRequirementTest.cs" /> <Compile Include="API\Objects\RaceTests.cs" /> <Compile Include="API\Objects\Requirement\RequirementHandlerTests.cs" /> <Compile Include="API\Objects\Requirement\Mock\FailingRequirement.cs" /> <Compile Include="API\Objects\Requirement\Mock\AbstractFixedRequirement.cs" /> <Compile Include="API\Objects\Requirement\Mock\PassingRequirement.cs" /> <Compile Include="API\Objects\Requirement\Mock\NotApplicableRequirement.cs" /> <Compile Include="API\Objects\Requirement\UnitCountRequirementDataTest.cs" /> <Compile Include="API\Factories\Requirement\UnitRequiresAtLeastNUnitsRequirementFactoryTest.cs" /> <Compile Include="API\Factories\Mock\MockRaceFactory.cs" /> </ItemGroup> <ItemGroup> <None Include="app.config" /> <None Include="testdata\Test.race"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\Test.system"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="COPYING" /> <None Include="testdata\race-with-non-existant-game-system.race"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\extended-data.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-race.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\default.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-type-referencing-race.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-no-stats-race.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\extended-data.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\extended-data.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-multi-type-referencing-race.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-multi-type-referencing-race-with-override.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-no-category.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-one-category-same-main-category.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-one-category-different-main-category.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\single-unit-two-categories.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\unit-in-non-main-category.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\unit-in-default-category.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\unit-in-specified-main-category.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\limits\absolute-limit.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\limits\composite-max-limit.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\limits\composite-min-limit.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\limits\composite-max-limit-nested.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\limits\empty-composite.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="WarFoundryTests.nunit"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\different-extra-data-key.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\duplicate-extra-data-key.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\non-existant-ability.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\existing-ability.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\duplicate-ability.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\non-existant-member-type.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\duplicate-member-type.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\existing-member-type.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\single-unit-with-invalid-equipment-slot-reference.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\single-unit-with-valid-equipment-slot-reference.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\single-unit-with-no-equipment-slot-limit.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\single-unit-with-invalid-equipment-reference.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\single-unit-with-valid-equipment-reference.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\valid-contained-unit-reference.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\invalid-contained-unit-reference.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\single-unit-with-duplicate-equipment-slot.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\duplicate-equipment-id.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-system-factory\valid-default-stats-one-stats-set.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-system-factory\valid-default-stats-multiple-stats-set.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-system-factory\invalid-default-stats.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-factory-util\duplicate-unit-id.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-factory-util\invalid-contained-id.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-factory-util\valid-contained-id.armyx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-system-factory\duplicate-stats-set-id.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-system-factory\valid-categories.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-system-factory\duplicate-category-ids.systemx"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\valid-categories.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\duplicate-category-ids.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\zip-format\Repack.system"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\subdir-loading-test\emptyfile.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\subdir-loading-test\subdir\subdirfile.txt"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\points-strings\names.systemx"> <Gettext-ScanForTranslations>false</Gettext-ScanForTranslations> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\multifile-zips\Multipack.system"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\multifile-zips\Test.race"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\multifile-zips\Test.system"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\simple-requirement.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> <None Include="testdata\xml-race-factory\extended-requirements.racex"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> </ItemGroup> <ItemGroup> <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77" /> <Reference Include="System.Xml" /> </ItemGroup> <ItemGroup> <ProjectReference Include="..\IBBoard.WarFoundry.API\IBBoard.WarFoundry.API.csproj"> <Project>{951E6C7A-7FBA-4F68-9D9E-F48618BB9626}</Project> <Name>IBBoard.WarFoundry.API</Name> </ProjectReference> <ProjectReference Include="..\IBBoard\IBBoard.csproj"> <Project>{5DFD64F6-FC2B-4B4F-B92E-483BAC468105}</Project> <Name>IBBoard</Name> </ProjectReference> <ProjectReference Include="..\SharpZipLib\ICSharpCode.SharpZLib.csproj"> <Project>{0E7413FF-EB9E-4714-ACF2-BE3A6A7B2FFD}</Project> <Name>ICSharpCode.SharpZLib</Name> </ProjectReference> <ProjectReference Include="..\IBBoard.NUnit\IBBoard.NUnit.csproj"> <Project>{C52AFD32-B869-4E14-AACE-2846AD2CC742}</Project> <Name>IBBoard.NUnit</Name> </ProjectReference> </ItemGroup> <ProjectExtensions> <MonoDevelop> <Properties> <Policies> <DotNetNamingPolicy DirectoryNamespaceAssociation="PrefixedHierarchical" ResourceNamePolicy="FileFormatDefault" /> </Policies> </Properties> </MonoDevelop> <VisualStudio /> </ProjectExtensions> <ItemGroup> <BootstrapperPackage Include="Microsoft.Net.Client.3.5"> <Visible>False</Visible> <ProductName>.NET Framework Client Profile</ProductName> <Install>false</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Net.Framework.2.0"> <Visible>False</Visible> <ProductName>.NET Framework 2.0 %28x86%29</ProductName> <Install>false</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Net.Framework.3.0"> <Visible>False</Visible> <ProductName>.NET Framework 3.0 %28x86%29</ProductName> <Install>false</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Net.Framework.3.5"> <Visible>False</Visible> <ProductName>.NET Framework 3.5</ProductName> <Install>false</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1"> <Visible>False</Visible> <ProductName>.NET Framework 3.5 SP1</ProductName> <Install>true</Install> </BootstrapperPackage> <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1"> <Visible>False</Visible> <ProductName>Windows Installer 3.1</ProductName> <Install>true</Install> </BootstrapperPackage> </ItemGroup> <ItemGroup> <Folder Include="API\Savers\Xml\" /> <Folder Include="API\Objects\Requirement\Mock\" /> <Folder Include="API\Factories\Requirement\" /> </ItemGroup> </Project>