Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/Commons.Xml.Relaxng/Test/RelaxngDatatypeProviderTests.cs')
-rw-r--r--mcs/class/Commons.Xml.Relaxng/Test/RelaxngDatatypeProviderTests.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/Commons.Xml.Relaxng/Test/RelaxngDatatypeProviderTests.cs b/mcs/class/Commons.Xml.Relaxng/Test/RelaxngDatatypeProviderTests.cs
index ccf4e5d1918..70e2c2f6b46 100644
--- a/mcs/class/Commons.Xml.Relaxng/Test/RelaxngDatatypeProviderTests.cs
+++ b/mcs/class/Commons.Xml.Relaxng/Test/RelaxngDatatypeProviderTests.cs
@@ -12,6 +12,8 @@ using Commons.Xml.Relaxng;
using Commons.Xml.Relaxng.XmlSchema;
using NUnit.Framework;
+using MonoTests.Helpers;
+
namespace MonoTests.Commons.Xml.Relaxng
{
[TestFixture]
@@ -23,7 +25,7 @@ namespace MonoTests.Commons.Xml.Relaxng
var datatypeLibrary = SetupMyDataProvider ();
XmlDocument xml = new XmlDocument ();
xml.LoadXml ("<root> <v1>mytype</v1> <v2>1</v2> </root>");
- XmlDocument schemaXml = ReadDoc ("Test/XmlFiles/463264.rng");
+ XmlDocument schemaXml = ReadDoc (TestResourceHelper.GetFullPathOfResource ("Test/XmlFiles/463264.rng"));
XmlReader reader = new RelaxngValidatingReader (new XmlNodeReader (xml), new XmlNodeReader (schemaXml), datatypeLibrary);
while (reader.Read ())
;
@@ -35,7 +37,7 @@ namespace MonoTests.Commons.Xml.Relaxng
var datatypeLibrary = SetupMyDataProvider ();
XmlDocument xml = new XmlDocument ();
xml.LoadXml ("<root> <v2>1</v2> <v1>mytype</v1> </root>");
- XmlDocument schemaXml = ReadDoc ("Test/XmlFiles/463267.rng");
+ XmlDocument schemaXml = ReadDoc (TestResourceHelper.GetFullPathOfResource ("Test/XmlFiles/463267.rng"));
XmlReader reader = new RelaxngValidatingReader (new XmlNodeReader (xml), new XmlNodeReader (schemaXml), datatypeLibrary);
while (reader.Read ())
;