mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-10-31 07:52:37 +01:00
AsOsAgnostic
This commit is contained in:
parent
a3ade09964
commit
7c8a8f8e55
@ -3,7 +3,6 @@ using FluentAssertions;
|
|||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using NzbDrone.Common.Extensions;
|
using NzbDrone.Common.Extensions;
|
||||||
using NzbDrone.Core.Housekeeping.Housekeepers;
|
using NzbDrone.Core.Housekeeping.Housekeepers;
|
||||||
using NzbDrone.Core.Metadata;
|
|
||||||
using NzbDrone.Core.Metadata.Files;
|
using NzbDrone.Core.Metadata.Files;
|
||||||
using NzbDrone.Core.Test.Framework;
|
using NzbDrone.Core.Test.Framework;
|
||||||
using NzbDrone.Test.Common;
|
using NzbDrone.Test.Common;
|
||||||
@ -16,7 +15,7 @@ namespace NzbDrone.Core.Test.Housekeeping.Housekeepers
|
|||||||
[Test]
|
[Test]
|
||||||
public void should_not_delete_metadata_files_that_have_a_relative_path()
|
public void should_not_delete_metadata_files_that_have_a_relative_path()
|
||||||
{
|
{
|
||||||
var relativePath = @"C:\Test\".AsOsAgnostic().GetRelativePath(@"C:\Test\Relative\Path");
|
var relativePath = @"C:\Test\".AsOsAgnostic().GetRelativePath(@"C:\Test\Relative\Path".AsOsAgnostic());
|
||||||
var file = Builder<MetadataFile>.CreateNew()
|
var file = Builder<MetadataFile>.CreateNew()
|
||||||
.With(m => m.RelativePath = relativePath)
|
.With(m => m.RelativePath = relativePath)
|
||||||
.BuildNew();
|
.BuildNew();
|
||||||
|
Loading…
Reference in New Issue
Block a user