Added TestArchive.tar.gz

This commit is contained in:
Mark McDowall 2014-03-09 01:44:57 -08:00
parent d3621fca71
commit d6adf2ebaf
3 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -362,6 +362,9 @@
<None Include="Files\SceneMappings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Files\TestArchive.tar.gz">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="Files\TestArchive.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>

View File

@ -2,6 +2,7 @@
using NUnit.Framework;
using NzbDrone.Common;
using System.IO;
using NzbDrone.Common.EnvironmentInfo;
using NzbDrone.Test.Common;
namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
@ -13,7 +14,9 @@ namespace NzbDrone.Core.Test.ProviderTests.DiskProviderTests
public void Should_extract_to_correct_folder()
{
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);