Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
comparison MockObjects/MockRaceZipFile.cs @ 3:40b31dfd6a46
Update tests (one currently fails because of "end of stream" that doesn't occur when using factories normally)
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 25 Jan 2009 13:54:18 +0000 |
parents | faf976fe57df |
children | 4222cfa99c78 |
comparison
equal
deleted
inserted
replaced
2:e1f8cb533bfa | 3:40b31dfd6a46 |
---|---|
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 // | 18 // |
19 // | 19 // |
20 | 20 |
21 using System; | 21 using System; |
22 using System.IO; | |
22 using ICSharpCode.SharpZipLib.Zip; | 23 using ICSharpCode.SharpZipLib.Zip; |
23 | 24 |
24 namespace IBBoard.WarFoundry.API | 25 namespace IBBoard.WarFoundry.API |
25 { | 26 { |
26 public class MockRaceZipFile : ZipFile | 27 public class MockRaceZipFile : ZipFile |
27 { | 28 { |
28 public MockRaceZipFile() : base("../../testdata/Race.zip") | 29 public MockRaceZipFile() : base(new FileInfo("Test.race").OpenRead()) |
29 { | 30 { |
30 } | 31 } |
31 } | 32 } |
32 } | 33 } |