annotate API/Factories/Xml/WarFoundryXmlFactoryUtilTest.cs @ 38:feb77f3287ca

Re #152: Test and fix extensibility of current schemas * Add unit test for parsing extended document without XSD for namespace
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Feb 2010 15:03:51 +0000
parents
children d4f6e9ac981e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 // This file (WarFoundryXmlFactoryUtilTest.cs) is a part of the IBBoard.WarFoundry.API.Tests project and is copyright 2010 IBBoard
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 //
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 // // 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.
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 using System;
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 using System.IO;
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 using NUnit.Framework;
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 namespace IBBoard.WarFoundry.API.Factories.Xml
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 {
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 [TestFixture()]
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 public class WarFoundryXmlFactoryUtilTest
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 {
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 [Test()]
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 public void TestParsingExtendedDataFile()
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
16 {
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 WarFoundryXmlFactoryUtils.CreateXmlDocumentFromStream(new FileInfo("testdata/extended-data.racex").OpenRead());
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 }
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 }
feb77f3287ca Re #152: Test and fix extensibility of current schemas
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
20 }