| 1 |
// |
| 2 |
// XsdDatatypeTests.cs |
| 3 |
// |
| 4 |
// Authors: |
| 5 |
// Atsushi Enomoto <[email protected]> |
| 6 |
// |
| 7 |
// (C) 2004 Novell Inc. |
| 8 |
// |
| 9 |
|
| 10 |
using System; |
| 11 |
using System.IO; |
| 12 |
using System.Xml; |
| 13 |
using Commons.Xml.Relaxng; |
| 14 |
using NUnit.Framework; |
| 15 |
|
| 16 |
namespace MonoTests.Commons.Xml.Relaxng |
| 17 |
{ |
| 18 |
/* |
| 19 |
[TestFixture] |
| 20 |
public class XsdDatatypeTests |
| 21 |
{ |
| 22 |
[Test] |
| 23 |
[ExpectedException (typeof (RelaxngException))] |
| 24 |
public void SchemaDatatypeTest () |
| 25 |
{ |
| 26 |
string xml = "<foo>a</foo>"; |
| 27 |
string rng = "<element xmlns='http://relaxng.org' name='foo'><data type='int' datatypeLibrary='http://www.w3.org/2001/XMLSchema-datatypes'/></element>"; |
| 28 |
RelaxngValidatingReader r = new RelaxngValidatingReader ( |
| 29 |
new XmlTextReader (xml, XmlNodeType.Document, null), |
| 30 |
new XmlTextReader (rng, XmlNodeType.Document, null)); |
| 31 |
while (!r.EOF) |
| 32 |
r.Read (); |
| 33 |
} |
| 34 |
} |
| 35 |
*/ |
| 36 |
} |