Skip to content

Commit

Permalink
Fix unit tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Juris Gekiss authored and Juris Gekiss committed Apr 3, 2024
1 parent ffee51b commit 33947b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/Abc.Xacml.UnitTests/XacmlEvaluationEngineFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public void IID030_11() {
[Test]
public void EvaluateRun() {
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(@"..\..\..\_Data\XACML_Samples\2.0\EvaluationSampleRequest.xml"); //c:\aa.xml
xmlDoc.Load(Path.Combine("..", "..", "..", "_Data", "XACML_Samples", "2.0", "EvaluationSampleRequest.xml"));

var serialize = new Xacml20ProtocolSerializer();

Expand All @@ -269,7 +269,7 @@ public void EvaluateRun() {


XmlDocument xmlDoc2 = new XmlDocument();
xmlDoc2.Load(@"..\..\..\_Data\XACML_Samples\2.0\EvaluationSamplePolicy.xml"); //c:\aa.xml
xmlDoc2.Load(Path.Combine("..", "..", "..", "_Data", "XACML_Samples", "2.0", "EvaluationSamplePolicy.xml"));

var serialize2 = new Xacml20ProtocolSerializer();

Expand Down
6 changes: 3 additions & 3 deletions test/Abc.Xacml.UnitTests/XacmlProtocolSerializerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void SetUp() {
private static string TestCasePath {
get {
var dir = SetUpClass.BaseDirectory;
return Path.Combine(dir, @"..\..\..\_Data");
return Path.Combine(dir, "..", "..", "..", "_Data");
}
}

Expand Down Expand Up @@ -109,7 +109,7 @@ public void WriteResponse_11()
[Test]
public void ReadRequest_11() {
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Path.Combine(TestCasePath, @"XACML_Samples\1.1\Example_1\Request.xml"));
xmlDoc.Load(Path.Combine(TestCasePath, "XACML_Samples", "1.1", "Example_1", "Request.xml"));

var serialize = new Xacml10ProtocolSerializer();

Expand Down Expand Up @@ -163,7 +163,7 @@ public void ReadRequest_11() {
[Test]
public void ReadPolicy_11() {
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(Path.Combine(TestCasePath, @"XACML_Samples\1.1\Example_1\Rule_1.xml"));
xmlDoc.Load(Path.Combine(TestCasePath, "XACML_Samples", "1.1", "Example_1", "Rule_1.xml"));

var serialize = new Xacml10ProtocolSerializer();

Expand Down

0 comments on commit 33947b3

Please sign in to comment.