changeset 7:209c2e9b8b20

Re #44 - Fix WarFoundry API tests * Update .csproj to reference new SharpZipLib library * Copy test data to output dir on build * Make Mock files reference data files in "testdata" folder as file names
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2009 16:41:57 +0000
parents bfac867dfd00
children 69bf7972c9fd
files IBBoard.WarFoundry.API.Tests.csproj MockObjects/MockRaceZipFile.cs MockObjects/MockSystemZipFile.cs
diffstat 3 files changed, 9 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/IBBoard.WarFoundry.API.Tests.csproj	Sat Mar 14 16:24:47 2009 +0000
     1.2 +++ b/IBBoard.WarFoundry.API.Tests.csproj	Sat Mar 14 16:41:57 2009 +0000
     1.3 @@ -10,8 +10,6 @@
     1.4      <AppDesignerFolder>Properties</AppDesignerFolder>
     1.5      <RootNamespace>IBBoard.WarFoundry.API.Tests</RootNamespace>
     1.6      <AssemblyName>IBBoard.WarFoundry.API.Tests</AssemblyName>
     1.7 -    <StartupObject>
     1.8 -    </StartupObject>
     1.9    </PropertyGroup>
    1.10    <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    1.11      <DebugSymbols>true</DebugSymbols>
    1.12 @@ -53,11 +51,15 @@
    1.13    <ItemGroup>
    1.14      <None Include="COPYING.GPL" />
    1.15      <None Include="COPYING.LGPL" />
    1.16 -    <None Include="testdata\Test.race" />
    1.17 -    <None Include="testdata\Test.system" />
    1.18 +    <None Include="testdata\Test.race">
    1.19 +      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.20 +    </None>
    1.21 +    <None Include="testdata\Test.system">
    1.22 +      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.23 +    </None>
    1.24    </ItemGroup>
    1.25    <ItemGroup>
    1.26 -    <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73">
    1.27 +    <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, PublicKeyToken=1b03e6acf1164f73">
    1.28        <SpecificVersion>False</SpecificVersion>
    1.29        <HintPath>libs\ICSharpCode.SharpZipLib.dll</HintPath>
    1.30      </Reference>
     2.1 --- a/MockObjects/MockRaceZipFile.cs	Sat Mar 14 16:24:47 2009 +0000
     2.2 +++ b/MockObjects/MockRaceZipFile.cs	Sat Mar 14 16:41:57 2009 +0000
     2.3 @@ -10,7 +10,7 @@
     2.4  {	
     2.5  	public class MockRaceZipFile : ZipFile
     2.6  	{		
     2.7 -		public MockRaceZipFile() : base(new FileInfo("Test.race").OpenRead())
     2.8 +		public MockRaceZipFile() : base("testdata/Test.race")
     2.9  		{
    2.10  		}
    2.11  	}
     3.1 --- a/MockObjects/MockSystemZipFile.cs	Sat Mar 14 16:24:47 2009 +0000
     3.2 +++ b/MockObjects/MockSystemZipFile.cs	Sat Mar 14 16:41:57 2009 +0000
     3.3 @@ -10,7 +10,7 @@
     3.4  {
     3.5  	public class MockSystemZipFile : ZipFile
     3.6  	{
     3.7 -		public MockSystemZipFile() : base(new FileInfo("Test.system").OpenRead())
     3.8 +		public MockSystemZipFile() : base("testdata/Warhammer5th.system")
     3.9  		{
    3.10  		}
    3.11  	}