Mercurial > repos > IBBoard.WarFoundry.API.Tests
view API/Savers/Xml/WarFoundryXmlFileSaverTests.cs @ 95:db6db25921fb
Re #324: Add saving of Race and System data to files
* Add tests for the zip entry name
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 05 Mar 2011 15:53:29 +0000 |
parents | 98539b2fe8fa |
children | 45b80fed5e2a |
line wrap: on
line source
using System; using NUnit.Framework; using System.IO; using IBBoard.WarFoundry.API.Objects; namespace IBBoard.WarFoundry.API.Savers.Xml { [TestFixture()] public class WarFoundryXmlFileSaverTests : IWarFoundryFileSaverTests { protected override IWarFoundryFileSaver GetSaver() { return new WarFoundryXmlFileSaver(); } protected override string GetEntryName (WarFoundryLoadedObject obj) { return obj.ID; } protected override string GetFileExtensionForType (WarFoundryLoadedObject obj) { return GetSaver().GetFileExtension(obj); } } }