view MockObjects/FixedFileWarFoundryLoader.cs @ 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 4222cfa99c78
children 69bf7972c9fd
line wrap: on
line source

// This file (FixedFileWarFoundryLoader.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2009 IBBoard.
//
// The file and the library/program it is in are licensed under the GNU LGPL license, either version 3 of the License or (at your option) any later version. Please see COPYING.LGPL for more information and the full license.

using System;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;

namespace IBBoard.WarFoundry.API
{
	public class FixedFileWarFoundryLoader : WarFoundryLoader
	{
		private ZipFile zipFile;
		
		public FixedFileWarFoundryLoader(ZipFile zip)
		{
			zipFile = zip;
		}
		
		protected override ZipFile MakeZipFile (FileInfo FileInfo)
		{
			return zipFile;
		}

	}
}