view IBBoard.WarFoundry.API.Tests.csproj @ 221:c40cb2048fc3

Re #394: * Fix UnitRequiresNUnitsForMUnitsRequirementTests unit test so it actually does test the other value * Add tests to "requires at least N" requirement and factory to test alternatives (Rollcall's "-1,X|Y" notation)
author IBBoard <dev@ibboard.co.uk>
date Sat, 24 Mar 2012 20:34:42 +0000
parents 9bf34e88da89
children 49480e1a8f90
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <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>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <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>
    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
  </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="API\Exporters\XmlSaveTest.cs" />
    <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\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\UnitRequiresAtLeastNUnitsRequirementTest.cs" />
    <Compile Include="API\Objects\Requirement\ValidationTests.cs" />
    <Compile Include="API\Objects\Requirement\UnitRequiresNoMoreThanNOfUnitTypeRequirementTest.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" />
    <Compile Include="API\MockRequirementFactory.cs" />
    <Compile Include="API\Factories\Requirement\Mock\MockRequirement.cs" />
    <Compile Include="API\Savers\Xml\WarFoundryXmlFileSaverTests.cs" />
    <Compile Include="API\Commands\EditArmyCommandTest.cs" />
    <Compile Include="API\Factories\AbstractNativeWarFoundryFactoryTest.cs" />
    <Compile Include="API\Factories\Mock\MockNativeWarFoundryFactory.cs" />
    <Compile Include="API\Objects\UnitEquipmentLimitTests.cs" />
    <Compile Include="API\Objects\UnitEquipmentRatioSelectionTests.cs" />
    <Compile Include="API\Objects\UnitEquipmentNumericSelectionTests.cs" />
    <Compile Include="API\Factories\Requirement\UnitRequiresNoMoreThanNOfUnitTypeRequirementFactoryTest.cs" />
    <Compile Include="API\Factories\Requirement\UnitRequiresNUnitsForMUnitsRequirementFactoryTest.cs" />
    <Compile Include="API\Factories\Mock\FileSearchingWarFoundryFactory.cs" />
    <Compile Include="API\Objects\ArmyTests.cs" />
    <Compile Include="API\Objects\Requirement\UnitRequiresNUnitsForMUnitsRequirementTests.cs" />
    <Compile Include="API\Objects\Requirement\Mock\MockRequiresNUnitsForMObjectsRequirement.cs" />
    <Compile Include="API\Objects\Requirement\AbstractUnitRequirementTest.cs" />
    <Compile Include="API\Objects\Requirement\RaceRequiresAtLeastNUnitsRequirementTest.cs" />
    <Compile Include="API\Objects\Requirement\RaceRequiresNoMoreThanNUnitsRequirementTest.cs" />
    <Compile Include="API\Objects\Requirement\AbstractUnitTypeUnitRequirementTest.cs" />
    <Compile Include="API\Objects\Requirement\AbstractRaceUnitRequirementTest.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>
    <Content Include="testdata\NotARaceFile.txt">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <None Include="libs\xmlunit.dll" />
    <None Include="testdata\multifile-zips\Test-OSX-style.system">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
    <None Include="testdata\xml-race-factory\cyclic.racex">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </None>
  </ItemGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Xml" />
    <Reference Include="nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77">
      <SpecificVersion>False</SpecificVersion>
    </Reference>
    <Reference Include="xmlunit">
      <HintPath>libs\xmlunit.dll</HintPath>
    </Reference>
  </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\" />
  </ItemGroup>
  <ItemGroup>
    <Content Include="testdata\xml_output.xml">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <SubType>Designer</SubType>
    </Content>
  </ItemGroup>
</Project>