Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
comparison API/Savers/IWarFoundryFileSaverTests.cs @ 93:72b2f9a5fe8f
Re #324: Add saving of Race and System data to files
* Tidy up after unit test
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 05 Mar 2011 15:21:41 +0000 |
parents | 43c44d0bf97f |
children | 10da200c7799 |
comparison
equal
deleted
inserted
replaced
92:43c44d0bf97f | 93:72b2f9a5fe8f |
---|---|
33 { | 33 { |
34 string tempFile = Path.GetTempFileName(); | 34 string tempFile = Path.GetTempFileName(); |
35 try | 35 try |
36 { | 36 { |
37 GetSaver().Save(tempFile, new MockGameSystem()); | 37 GetSaver().Save(tempFile, new MockGameSystem()); |
38 new ZipFile(tempFile); | 38 ZipFile file = new ZipFile(tempFile); |
39 file.Close(); | |
39 } | 40 } |
40 finally | 41 finally |
41 { | 42 { |
42 if (File.Exists(tempFile)) | 43 if (File.Exists(tempFile)) |
43 { | 44 { |