Mercurial > repos > IBDev-IBBoard.WarFoundry.API.Tests
view API/Factories/Xml/WarFoundryXmlFactoryUtilTest.cs @ 42:d4f6e9ac981e
Re #152: Test and fix extensibility of current schemas
* Test system and army files
* Test multiple unknown children in racex file
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 13 Mar 2010 20:50:31 +0000 |
parents | feb77f3287ca |
children | b2517bb113d0 |
line wrap: on
line source
// This file (WarFoundryXmlFactoryUtilTest.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2010 IBBoard // // // The file and the library/program it is in are licensed and distributed, without warranty, under the GNU Affero GPL license, either version 3 of the License or (at your option) any later version. Please see COPYING for more information and the full license. using System; using System.IO; using System.Xml; using NUnit.Framework; namespace IBBoard.WarFoundry.API.Factories.Xml { [TestFixture()] public class WarFoundryXmlFactoryUtilTest { [Test()] public void TestParsingExtendedDataFiles() { TestParsingExtendedDataFile("testdata/extended-data.racex"); TestParsingExtendedDataFile("testdata/extended-data.systemx"); TestParsingExtendedDataFile("testdata/extended-data.armyx"); } private static void TestParsingExtendedDataFile(string path) { XmlDocument document = WarFoundryXmlFactoryUtils.CreateXmlDocumentFromStream(new FileInfo(path).OpenRead()); Assert.IsNotNull(document); } } }