From d6adf2ebaf3f49c54c59d1e1e7e5294a23e46a2a Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 9 Mar 2014 01:44:57 -0800 Subject: [PATCH] Added TestArchive.tar.gz --- src/NzbDrone.Core.Test/Files/TestArchive.tar.gz | Bin 0 -> 283 bytes src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 3 +++ .../DiskProviderTests/ArchiveProviderFixture.cs | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/NzbDrone.Core.Test/Files/TestArchive.tar.gz diff --git a/src/NzbDrone.Core.Test/Files/TestArchive.tar.gz b/src/NzbDrone.Core.Test/Files/TestArchive.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b37bf29717d5e3f25b7ca1f55893ce8133f9269f GIT binary patch literal 283 zcmV+$0p$K4iwFozHyl#}090jjbU|`sXlZt3E_7jX0PUDv3W7ish37eF53_>0cl? zQvSdCUrLEa{`&y=A2*}?|FaNI@}HgmDZ_ss!2h@z@?Qn*f4S>_`2XjH!To>oUxn&_ h$bUZ||Knzq{~`Kc0{?vg{{a9XP98}-xV!)&0028uizWa7 literal 0 HcmV?d00001 diff --git a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index d2b866928..b21c4cfd2 100644 --- a/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/src/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -362,6 +362,9 @@ Always + + Always + Always diff --git a/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs b/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs index 9cf514eb1..a9f3e2f0d 100644 --- a/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs +++ b/src/NzbDrone.Core.Test/ProviderTests/DiskProviderTests/ArchiveProviderFixture.cs @@ -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);