mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using FizzWare.NBuilder;
|
||||
using FluentAssertions;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
@@ -7,7 +8,6 @@ using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Core.RemotePathMappings;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
using NzbDrone.Test.Common;
|
||||
using FizzWare.NBuilder;
|
||||
|
||||
namespace NzbDrone.Core.Test.RemotePathMappingsTests
|
||||
{
|
||||
@@ -72,7 +72,7 @@ namespace NzbDrone.Core.Test.RemotePathMappingsTests
|
||||
Subject.Remove(1);
|
||||
Mocker.GetMock<IRemotePathMappingRepository>().Verify(c => c.Delete(1), Times.Once());
|
||||
}
|
||||
|
||||
|
||||
[TestCase("my-server.localdomain", "/mnt/storage", @"D:\mountedstorage")]
|
||||
[TestCase("my-server.localdomain", "/mnt/storage", @"D:\mountedstorage2")]
|
||||
public void adding_duplicated_mapping_should_throw(string host, string remotePath, string localPath)
|
||||
@@ -128,7 +128,7 @@ namespace NzbDrone.Core.Test.RemotePathMappingsTests
|
||||
{
|
||||
Host = "my-server.localdomain",
|
||||
RemotePath = remotePath,
|
||||
LocalPath = @"D:\mountedstorage\downloads\tv" .AsOsAgnostic()
|
||||
LocalPath = @"D:\mountedstorage\downloads\tv".AsOsAgnostic()
|
||||
};
|
||||
|
||||
var result = Subject.Add(mapping);
|
||||
@@ -136,4 +136,4 @@ namespace NzbDrone.Core.Test.RemotePathMappingsTests
|
||||
result.RemotePath.Should().Be(cleanedPath);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user