mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-26 17:47:08 +00:00
26 lines
No EOL
766 B
C#
26 lines
No EOL
766 B
C#
using System.Linq;
|
|
using FizzWare.NBuilder;
|
|
using FluentAssertions;
|
|
using Marr.Data;
|
|
using NUnit.Framework;
|
|
using NzbDrone.Core.Configuration;
|
|
using NzbDrone.Core.MediaFiles;
|
|
using NzbDrone.Core.Organizer;
|
|
using NzbDrone.Core.RootFolders;
|
|
using NzbDrone.Core.Tv;
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
namespace NzbDrone.Core.Test.MediaFileTests
|
|
{
|
|
[TestFixture]
|
|
public class MediaFileServiceTest : CoreTest<MediaFileService>
|
|
{
|
|
|
|
[Test]
|
|
[TestCase("Law & Order: Criminal Intent - S10E07 - Icarus [HDTV-720p]", "Law & Order- Criminal Intent - S10E07 - Icarus [HDTV-720p]")]
|
|
public void CleanFileName(string name, string expectedName)
|
|
{
|
|
FileNameBuilder.CleanFilename(name).Should().Be(expectedName);
|
|
}
|
|
}
|
|
} |