Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
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 wrap: on
line diff
--- a/IBBoard.WarFoundry.API.Tests.csproj Sat Mar 14 16:24:47 2009 +0000 +++ b/IBBoard.WarFoundry.API.Tests.csproj Sat Mar 14 16:41:57 2009 +0000 @@ -10,8 +10,6 @@ <AppDesignerFolder>Properties</AppDesignerFolder> <RootNamespace>IBBoard.WarFoundry.API.Tests</RootNamespace> <AssemblyName>IBBoard.WarFoundry.API.Tests</AssemblyName> - <StartupObject> - </StartupObject> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> @@ -53,11 +51,15 @@ <ItemGroup> <None Include="COPYING.GPL" /> <None Include="COPYING.LGPL" /> - <None Include="testdata\Test.race" /> - <None Include="testdata\Test.system" /> + <None Include="testdata\Test.race"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> + <None Include="testdata\Test.system"> + <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> + </None> </ItemGroup> <ItemGroup> - <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.4.369, Culture=neutral, PublicKeyToken=1b03e6acf1164f73"> + <Reference Include="ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, PublicKeyToken=1b03e6acf1164f73"> <SpecificVersion>False</SpecificVersion> <HintPath>libs\ICSharpCode.SharpZipLib.dll</HintPath> </Reference>
--- a/MockObjects/MockRaceZipFile.cs Sat Mar 14 16:24:47 2009 +0000 +++ b/MockObjects/MockRaceZipFile.cs Sat Mar 14 16:41:57 2009 +0000 @@ -10,7 +10,7 @@ { public class MockRaceZipFile : ZipFile { - public MockRaceZipFile() : base(new FileInfo("Test.race").OpenRead()) + public MockRaceZipFile() : base("testdata/Test.race") { } }
--- a/MockObjects/MockSystemZipFile.cs Sat Mar 14 16:24:47 2009 +0000 +++ b/MockObjects/MockSystemZipFile.cs Sat Mar 14 16:41:57 2009 +0000 @@ -10,7 +10,7 @@ { public class MockSystemZipFile : ZipFile { - public MockSystemZipFile() : base(new FileInfo("Test.system").OpenRead()) + public MockSystemZipFile() : base("testdata/Warhammer5th.system") { } }