Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
changeset 56:c6e5b8a1948d
Re #274: crash when missing unitMember id
* Add NUnit config to allow for stand-alone NUnit testing in Windows (because Microsoft won't let you do it from VS Express)
* Update test data to remove rogue unnecessary "lang" attribute
* Remove unnecessary .csproj.user file from source control
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 12 Jun 2010 15:14:06 +0000 |
parents | 7f9e1fef069e |
children | 745820ad7656 |
files | IBBoard.WarFoundry.API.Tests.csproj IBBoard.WarFoundry.API.Tests.csproj.user WarFoundryTests.nunit testdata/limits/absolute-limit.xml testdata/limits/composite-max-limit-nested.xml testdata/limits/composite-max-limit.xml testdata/limits/composite-min-limit.xml testdata/limits/empty-composite.xml testdata/single-unit-multi-type-referencing-race-with-override.racex testdata/single-unit-multi-type-referencing-race.racex testdata/single-unit-no-category.racex testdata/single-unit-no-stats-race.racex testdata/single-unit-non-existant-type-referencing-race.racex testdata/single-unit-one-category-different-main-category.racex testdata/single-unit-one-category-same-main-category.racex testdata/single-unit-race.racex testdata/single-unit-two-categories.racex testdata/single-unit-type-referencing-race.racex |
diffstat | 18 files changed, 27 insertions(+), 31 deletions(-) [+] |
line wrap: on
line diff
--- a/IBBoard.WarFoundry.API.Tests.csproj Sat Jun 05 18:58:54 2010 +0000 +++ b/IBBoard.WarFoundry.API.Tests.csproj Sat Jun 12 15:14:06 2010 +0000 @@ -1,4 +1,4 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> @@ -149,6 +149,9 @@ <None Include="testdata\limits\empty-composite.xml"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </None> + <None Include="WarFoundryTests.nunit"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> </ItemGroup> <ItemGroup> <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, PublicKeyToken=1b03e6acf1164f73"> @@ -168,16 +171,6 @@ <Name>IBBoard</Name> </ProjectReference> </ItemGroup> - <ItemGroup> - <Folder Include="API\" /> - <Folder Include="API\Objects\" /> - <Folder Include="API\Objects\Mock\" /> - <Folder Include="API\Factories\" /> - <Folder Include="API\Factories\Mock\" /> - <Folder Include="API\Util\" /> - <Folder Include="API\Factories\Xml\" /> - <Folder Include="testdata\limits\" /> - </ItemGroup> <ProjectExtensions> <MonoDevelop> <Properties> @@ -186,5 +179,6 @@ </Policies> </Properties> </MonoDevelop> + <VisualStudio /> </ProjectExtensions> </Project> \ No newline at end of file
--- a/IBBoard.WarFoundry.API.Tests.csproj.user Sat Jun 05 18:58:54 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,5 +0,0 @@ -<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <PropertyGroup> - <ProjectView>ProjectFiles</ProjectView> - </PropertyGroup> -</Project> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WarFoundryTests.nunit Sat Jun 12 15:14:06 2010 +0000 @@ -0,0 +1,7 @@ +<NUnitProject> + <Settings activeconfig="Debug" /> + <Config name="Debug" binpathtype="Auto"> + <assembly path="IBBoard.WarFoundry.API.Tests.dll" /> + </Config> + <Config name="Release" binpathtype="Auto" /> +</NUnitProject> \ No newline at end of file
--- a/testdata/limits/absolute-limit.xml Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/limits/absolute-limit.xml Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <equipmentSlots>
--- a/testdata/limits/composite-max-limit-nested.xml Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/limits/composite-max-limit-nested.xml Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <equipmentSlots>
--- a/testdata/limits/composite-max-limit.xml Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/limits/composite-max-limit.xml Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <equipmentSlots>
--- a/testdata/limits/composite-min-limit.xml Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/limits/composite-min-limit.xml Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <equipmentSlots>
--- a/testdata/limits/empty-composite.xml Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/limits/empty-composite.xml Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <equipmentSlots>
--- a/testdata/single-unit-multi-type-referencing-race-with-override.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-multi-type-referencing-race-with-override.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <stats>
--- a/testdata/single-unit-multi-type-referencing-race.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-multi-type-referencing-race.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <unitMembers>
--- a/testdata/single-unit-no-category.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-no-category.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <stats>
--- a/testdata/single-unit-no-stats-race.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-no-stats-race.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> </unit>
--- a/testdata/single-unit-non-existant-type-referencing-race.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-non-existant-type-referencing-race.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <unitMembers>
--- a/testdata/single-unit-one-category-different-main-category.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-one-category-different-main-category.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <stats>
--- a/testdata/single-unit-one-category-same-main-category.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-one-category-same-main-category.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <stats>
--- a/testdata/single-unit-race.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-race.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <stats>
--- a/testdata/single-unit-two-categories.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-two-categories.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <stats>
--- a/testdata/single-unit-type-referencing-race.racex Sat Jun 05 18:58:54 2010 +0000 +++ b/testdata/single-unit-type-referencing-race.racex Sat Jun 12 15:14:06 2010 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default" lang="en"> +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="default"> <units> <unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1"> <unitMembers>