Cleanup namespace names of class lib tests to follow convention
[mono-project.git] / mcs / class / Commons.Xml.Relaxng / Test / NvdlValidatingReaderTests.cs
blob8f0ae73cf6d5f441285b60caaa75acd3f22a17a7
1 //
2 // NvdlValidatingReaderTests.cs
3 //
4 // Authors:
5 // Atsushi Enomoto <atsushi@ximian.com>
6 //
7 // Copyright (C) 2006 Novell Inc.
8 //
10 using System;
11 using System.IO;
12 using System.Xml;
13 using Commons.Xml.Nvdl;
14 using NUnit.Framework;
16 namespace MonoTests.Commons.Xml.Relaxng
18 [TestFixture]
19 public class NvdlValidatingReaderTests
21 [Test]
22 public void ReadNvdlNvdl ()
24 using (TextReader r = File.OpenText ("Test/XmlFiles/nvdl.nvdl")) {
25 NvdlRules rules = NvdlReader.Read (
26 new XmlTextReader (r));
30 [Test]
31 public void ValidateNvdlNvdl ()
33 NvdlRules rules = null;
34 string path = "Test/XmlFiles/nvdl.nvdl";
35 using (TextReader r = File.OpenText (path)) {
36 rules = NvdlReader.Read (
37 new XmlTextReader (path, r));
39 using (TextReader r = File.OpenText (path)) {
40 XmlTextReader xtr = new XmlTextReader (path, r);
41 NvdlValidatingReader vr = new NvdlValidatingReader (xtr, rules);
42 while (!vr.EOF)
43 vr.Read ();