Skip to content

Commit be2b974

Browse files
committed
Try fix xml loading
1 parent f3ac972 commit be2b974

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/NHibernate.Test/Hql/Ast/ParsingFixture.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.IO;
34
using System.Xml.Linq;
45
using NHibernate.Hql.Ast.ANTLR;
56
using NUnit.Framework;
@@ -42,7 +43,7 @@ public void ManualTest()
4243
/// <summary>
4344
/// Helper "test" to display queries that are ignored
4445
/// </summary>
45-
[Test]
46+
[Test, Explicit]
4647
public void ShowIgnoredQueries()
4748
{
4849
foreach (string query in QueryFactoryClass.GetIgnores)
@@ -54,7 +55,7 @@ public void ShowIgnoredQueries()
5455
/// <summary>
5556
/// Helper "test" to display queries that don't parse in H3
5657
/// </summary>
57-
[Test]
58+
[Test, Explicit]
5859
public void ShowExceptionQueries()
5960
{
6061
foreach (string query in QueryFactoryClass.GetExceptions)
@@ -107,7 +108,9 @@ static IEnumerable<T> EnumerateTests<T>(
107108
Func<QueryTestData, bool> predicate,
108109
Func<QueryTestData, T> projection)
109110
{
110-
XDocument doc = XDocument.Load(@"Hql/Ast/TestQueriesWithResults.xml");
111+
112+
XDocument doc = XDocument.Load(
113+
Path.Join(Path.GetDirectoryName(typeof(ParsingFixture).Assembly.Location), @"Hql/Ast/TestQueriesWithResults.xml"));
111114

112115
foreach (XElement testGroup in doc.Element("Tests").Elements("TestGroup"))
113116
{

0 commit comments

Comments
 (0)