changeset 27:e7de5c96f5c2

Re #44 - Fix API tests * Make AbstractNative factory silently dispose of IOExceptions - test data triggers one on the SharpZipLib DLL * Remove unused MakeZipFile method * Rename GetGameSystemLoadingFactoryForFile to remove reference to Race
author IBBoard <dev@ibboard.co.uk>
date Sat, 14 Mar 2009 17:10:26 +0000
parents 67db7f97b4ab
children e5ea6bfcde83
files api/Factories/AbstractNativeWarFoundryFactory.cs api/WarFoundryLoader.cs
diffstat 2 files changed, 6 insertions(+), 7 deletions(-) [+]
line diff
     1.1 --- a/api/Factories/AbstractNativeWarFoundryFactory.cs	Sat Mar 14 16:43:38 2009 +0000
     1.2 +++ b/api/Factories/AbstractNativeWarFoundryFactory.cs	Sat Mar 14 17:10:26 2009 +0000
     1.3 @@ -44,6 +44,10 @@
     1.4  			{
     1.5  				//Silently dispose as per spec for the method
     1.6  			}
     1.7 +			catch (IOException)
     1.8 +			{
     1.9 +				//Silently dispose as per spec for the method
    1.10 +			}
    1.11  			
    1.12  			return zip;
    1.13  		}
     2.1 --- a/api/WarFoundryLoader.cs	Sat Mar 14 16:43:38 2009 +0000
     2.2 +++ b/api/WarFoundryLoader.cs	Sat Mar 14 17:10:26 2009 +0000
     2.3 @@ -188,7 +188,7 @@
     2.4  		
     2.5  			foreach (FileInfo file in directory.GetFiles())
     2.6  			{
     2.7 -				IWarFoundryFactory factory = GetGameSystemRaceLoadingFactoryForFile(file);
     2.8 +				IWarFoundryFactory factory = GetGameSystemLoadingFactoryForFile(file);
     2.9  				
    2.10  				if (factory != null)
    2.11  				{
    2.12 @@ -212,7 +212,7 @@
    2.13  			return fails;
    2.14  		}
    2.15  
    2.16 -		private IWarFoundryFactory GetGameSystemRaceLoadingFactoryForFile(FileInfo file)
    2.17 +		private IWarFoundryFactory GetGameSystemLoadingFactoryForFile(FileInfo file)
    2.18  		{
    2.19  			IWarFoundryFactory loadingFactory = null;
    2.20  			
    2.21 @@ -477,11 +477,6 @@
    2.22  			}
    2.23  		}
    2.24  		
    2.25 -		protected virtual ZipFile MakeZipFile(FileInfo file)
    2.26 -		{
    2.27 -			return new ZipFile(file.FullName);
    2.28 -		}
    2.29 -		
    2.30  		protected void StoreGameSystem(GameSystem system)
    2.31  		{
    2.32  			string sysid = system.ID.ToLower();