mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Added TestArchive.tar.gz
This commit is contained in:
parent
d3621fca71
commit
d6adf2ebaf
BIN
src/NzbDrone.Core.Test/Files/TestArchive.tar.gz
Normal file
BIN
src/NzbDrone.Core.Test/Files/TestArchive.tar.gz
Normal file
Binary file not shown.
@ -362,6 +362,9 @@
|
|||||||
<None Include="Files\SceneMappings.json">
|
<None Include="Files\SceneMappings.json">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Include="Files\TestArchive.tar.gz">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
<None Include="Files\TestArchive.zip">
|
<None Include="Files\TestArchive.zip">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Common;
|
using NzbDrone.Common;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using NzbDrone.Common.EnvironmentInfo;
|
||||||
using NzbDrone.Test.Common;
|
using NzbDrone.Test.Common;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
|
namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
|
||||||
@ -13,7 +14,9 @@ public class ArchiveProviderFixture : TestBase<ArchiveService>
|
|||||||
public void Should_extract_to_correct_folder()
|
public void Should_extract_to_correct_folder()
|
||||||
{
|
{
|
||||||
var destination = Path.Combine(TempFolder, "destination");
|
var destination = Path.Combine(TempFolder, "destination");
|
||||||
Subject.Extract(GetTestFilePath("TestArchive.zip"), destination);
|
var testArchive = OsInfo.IsWindows ? "TestArchive.zip" : "TestArchive.tar.gz";
|
||||||
|
|
||||||
|
Subject.Extract(GetTestFilePath(testArchive), destination);
|
||||||
|
|
||||||
var destinationFolder = new DirectoryInfo(destination);
|
var destinationFolder = new DirectoryInfo(destination);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user