# HG changeset patch # User IBBoard # Date 1267283031 0 # Node ID feb77f3287ca2f136f6d2f1f5915d2c96ee17b72 # Parent bf46c113d85c1e1179221fab87746465bf70eed9 Re #152: Test and fix extensibility of current schemas * Add unit test for parsing extended document without XSD for namespace diff -r bf46c113d85c -r feb77f3287ca API/Factories/Xml/WarFoundryXmlFactoryUtilTest.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/API/Factories/Xml/WarFoundryXmlFactoryUtilTest.cs Sat Feb 27 15:03:51 2010 +0000 @@ -0,0 +1,20 @@ +// 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 NUnit.Framework; + +namespace IBBoard.WarFoundry.API.Factories.Xml +{ + [TestFixture()] + public class WarFoundryXmlFactoryUtilTest + { + [Test()] + public void TestParsingExtendedDataFile() + { + WarFoundryXmlFactoryUtils.CreateXmlDocumentFromStream(new FileInfo("testdata/extended-data.racex").OpenRead()); + } + } +} diff -r bf46c113d85c -r feb77f3287ca IBBoard.WarFoundry.API.Tests.csproj --- a/IBBoard.WarFoundry.API.Tests.csproj Sat Feb 27 14:26:19 2010 +0000 +++ b/IBBoard.WarFoundry.API.Tests.csproj Sat Feb 27 15:03:51 2010 +0000 @@ -59,6 +59,7 @@ + @@ -77,6 +78,9 @@ PreserveNewest + + PreserveNewest + diff -r bf46c113d85c -r feb77f3287ca testdata/extended-data.racex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/testdata/extended-data.racex Sat Feb 27 15:03:51 2010 +0000 @@ -0,0 +1,88 @@ + + + + + + 4 + 6 + 6 + 4 + 4 + 3 + 6 + 4 + 9 + + + + + + + + 4 + 3 + 3 + 4 + 3 + 1 + 4 + 1 + 7 + + + + + + + + + + + + + 4 + 4 + 3 + 4 + 3 + 1 + 4 + 2 + 7 + + + + + + + + + + 4 + 3 + 4 + 4 + 3 + 1 + 4 + 1 + 7 + + + + + + + + + + + + + + + + + + +