diff options
author | verhoek <30193551+verhoek@users.noreply.github.com> | 2018-11-02 23:34:07 +0300 |
---|---|---|
committer | verhoek <30193551+verhoek@users.noreply.github.com> | 2018-11-02 23:34:07 +0300 |
commit | b2cc18426c5297a3da4cf1164a846091d1f9f457 (patch) | |
tree | 99fb7bc58c2d2e392d392e5b76fad4775359eff8 /Duplicati/UnitTest/IOTests.cs | |
parent | 6755d8cd1c94d7c01875e9b04a532e74ea577258 (diff) |
Renamed Library.IO to Library.Common.IO.
Moved basic Platform functions to Library.Common.Platform.
Turned IO_OS into property within Library.Common.
Diffstat (limited to 'Duplicati/UnitTest/IOTests.cs')
-rw-r--r-- | Duplicati/UnitTest/IOTests.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Duplicati/UnitTest/IOTests.cs b/Duplicati/UnitTest/IOTests.cs index 1fa1c4408..a8a6ee02c 100644 --- a/Duplicati/UnitTest/IOTests.cs +++ b/Duplicati/UnitTest/IOTests.cs @@ -18,7 +18,7 @@ using System.Text;
using NUnit.Framework;
-using Duplicati.Library.IO;
+using Duplicati.Library.Common.IO;
using Duplicati.Library.Utility;
namespace Duplicati.UnitTest @@ -37,7 +37,7 @@ namespace Duplicati.UnitTest public void TestGetPathRootWithLongPath()
{
var pathRoot = Utility.IsClientWindows ? "C:\\" : "/";
- var root = SystemIO.IO_OS(Utility.IsClientWindows).GetPathRoot(LongPath(pathRoot));
+ var root = SystemIO.IO_OS.GetPathRoot(LongPath(pathRoot));
Assert.AreEqual(pathRoot, root);
}
@@ -71,13 +71,13 @@ namespace Duplicati.UnitTest var pathRoot = Utility.IsClientWindows ? "C:\\" : "/";
var longPath = LongPath(pathRoot);
- if (SystemIO.IO_OS(Utility.IsClientWindows).DirectoryExists(longPath))
+ if (SystemIO.IO_OS.DirectoryExists(longPath))
{
return;
}
//In particular don't throw PathTooLongException
- Assert.Throws<System.IO.DirectoryNotFoundException>(() => SystemIO.IO_OS(Utility.IsClientWindows).GetFiles(longPath));
+ Assert.Throws<System.IO.DirectoryNotFoundException>(() => SystemIO.IO_OS.GetFiles(longPath));
}
[Test]
@@ -86,13 +86,13 @@ namespace Duplicati.UnitTest var pathRoot = Utility.IsClientWindows ? "C:\\" : "/";
var longPath = LongPath(pathRoot);
- if (SystemIO.IO_OS(Utility.IsClientWindows).DirectoryExists(longPath)) + if (SystemIO.IO_OS.DirectoryExists(longPath)) {
return;
}
//In particular don't throw PathTooLongException
- Assert.Throws<System.IO.DirectoryNotFoundException>(() => SystemIO.IO_OS(Utility.IsClientWindows).GetDirectories(longPath));
+ Assert.Throws<System.IO.DirectoryNotFoundException>(() => SystemIO.IO_OS.GetDirectories(longPath));
}
} } |