changeset 161:c28ff466d009 Ticket341-DefaultArmySize

Re #341: Default army size of 0 * Add unit test file back to project Also: * Setup ignore files
author IBBoard <dev@ibboard.co.uk>
date Sun, 21 Aug 2011 20:40:41 +0100
parents 23e7f51386fd
children 12a8279f116f b0b41bf8ad68
files .hgignore API/Savers/Xml/WarFoundryXmlFileSaverTests.cs IBBoard.WarFoundry.API.Tests.csproj
diffstat 3 files changed, 8 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.hgignore	Sun Aug 21 20:40:41 2011 +0100
     1.3 @@ -0,0 +1,5 @@
     1.4 +obj/*
     1.5 +bin/*
     1.6 +test-results/*
     1.7 +IBBoard.WarFoundry.API.Tests.suo
     1.8 +IBBoard.WarFoundry.API.Tests.pidb
     1.9 \ No newline at end of file
     2.1 --- a/API/Savers/Xml/WarFoundryXmlFileSaverTests.cs	Sun Aug 14 01:19:12 2011 +0000
     2.2 +++ b/API/Savers/Xml/WarFoundryXmlFileSaverTests.cs	Sun Aug 21 20:40:41 2011 +0100
     2.3 @@ -41,12 +41,12 @@
     2.4  
     2.5  		protected override byte[] GetGameSystemContentBytes()
     2.6  		{
     2.7 -			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><system xmlns=""http://ibboard.co.uk/warfoundry/system"" xmlns:cats=""http://ibboard.co.uk/warfoundry/cats"" id=""mocksystem"" name=""Mock Game System"" defaultArmySize=""0"" warn=""false"" allowAllies=""false""><categories /><sysStatsList defaultStats=""default""><sysStats id=""default"" /></sysStatsList></system>");
     2.8 +			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><system xmlns=""http://ibboard.co.uk/warfoundry/system"" xmlns:cats=""http://ibboard.co.uk/warfoundry/cats"" id=""mocksystem"" name=""Mock Game System"" defaultArmySize=""1000"" warn=""true"" allowAllies=""false""><categories /><sysStatsList defaultStats=""default""><sysStats id=""default"" /></sysStatsList></system>");
     2.9  		}
    2.10  
    2.11  		protected override byte[] GetOtherGameSystemContentBytes()
    2.12  		{
    2.13 -			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><system xmlns=""http://ibboard.co.uk/warfoundry/system"" xmlns:cats=""http://ibboard.co.uk/warfoundry/cats"" id=""otherSystem"" name=""Other System"" defaultArmySize=""0"" warn=""false"" allowAllies=""false""><categories /><sysStatsList defaultStats=""_"" /></system>");
    2.14 +			return StringManipulation.StringToBytes(@"<?xml version=""1.0"" encoding=""UTF-8""?><system xmlns=""http://ibboard.co.uk/warfoundry/system"" xmlns:cats=""http://ibboard.co.uk/warfoundry/cats"" id=""otherSystem"" name=""Other System"" defaultArmySize=""1000"" warn=""true"" allowAllies=""false""><categories /><sysStatsList defaultStats=""_"" /></system>");
    2.15  		}
    2.16  
    2.17  		protected override byte[] GetArmyContentBytes ()
     3.1 --- a/IBBoard.WarFoundry.API.Tests.csproj	Sun Aug 14 01:19:12 2011 +0000
     3.2 +++ b/IBBoard.WarFoundry.API.Tests.csproj	Sun Aug 21 20:40:41 2011 +0100
     3.3 @@ -105,6 +105,7 @@
     3.4      <Compile Include="API\Factories\Mock\MockRaceFactory.cs" />
     3.5      <Compile Include="API\MockRequirementFactory.cs" />
     3.6      <Compile Include="API\Factories\Requirement\Mock\MockRequirement.cs" />
     3.7 +    <Compile Include="API\Savers\Xml\WarFoundryXmlFileSaverTests.cs" />
     3.8    </ItemGroup>
     3.9    <ItemGroup>
    3.10      <None Include="app.config" />