[longomatch] Use a OS neutral tmp dir



commit b9dba22040f4f8b28c1b074def2f6111e95021c6
Author: Jorge Zapata <jorgeluis zapata gmail com>
Date:   Thu Mar 12 15:50:51 2015 +0100

    Use a OS neutral tmp dir

 Tests/Services/TestFileStorage.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/Tests/Services/TestFileStorage.cs b/Tests/Services/TestFileStorage.cs
index 53f4018..a718c8a 100644
--- a/Tests/Services/TestFileStorage.cs
+++ b/Tests/Services/TestFileStorage.cs
@@ -18,6 +18,7 @@
 using NUnit.Framework;
 using System;
 using System.Collections.Generic;
+using System.IO;
 using LongoMatch.Services.Services;
 using LongoMatch.Core.Interfaces;
 
@@ -45,7 +46,7 @@ namespace Tests.Services
                [Test()]
                public void TestCase ()
                {
-                       FileStorage fs = new FileStorage("/tmp/TestFileStorage/", true);
+                       FileStorage fs = new FileStorage(Path.Combine(Path.GetTempPath(), "TestFileStorage"), 
true);
                        TestStorable ts1 = new TestStorable("first");
 
                        fs.Store<TestStorable>(ts1);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]