mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-09-23 23:45:14 +00:00
Fix testing under Linux
This commit is contained in:
@@ -264,6 +264,12 @@ public class ArchiveTests : ReaderTests
|
||||
ReaderOptions? readerOptions = null
|
||||
)
|
||||
{
|
||||
#if !NETFRAMEWORK
|
||||
if (!OperatingSystem.IsWindows())
|
||||
{
|
||||
fileOrder = fileOrder.Replace('\\', '/');
|
||||
}
|
||||
#endif
|
||||
var expected = new Stack<string>(fileOrder.Split(' '));
|
||||
testArchive = Path.Combine(TEST_ARCHIVES_PATH, testArchive);
|
||||
using (var archive = ArchiveFactory.Open(testArchive, readerOptions))
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using SharpCompress.Common;
|
||||
@@ -76,6 +77,12 @@ public abstract class ReaderTests : TestBase
|
||||
ReaderOptions? options = null
|
||||
)
|
||||
{
|
||||
#if !NETFRAMEWORK
|
||||
if (!OperatingSystem.IsWindows())
|
||||
{
|
||||
fileOrder = fileOrder.Replace('\\', '/');
|
||||
}
|
||||
#endif
|
||||
var expected = new Stack<string>(fileOrder.Split(' '));
|
||||
|
||||
testArchive = Path.Combine(TEST_ARCHIVES_PATH, testArchive);
|
||||
|
||||
Reference in New Issue
Block a user