2013-03-01 10:03:41 +03:00
|
|
|
using System.Linq;
|
2010-10-24 10:46:58 +03:00
|
|
|
using FizzWare.NBuilder;
|
2011-06-03 00:06:46 +03:00
|
|
|
using FluentAssertions;
|
2013-04-11 18:28:08 +03:00
|
|
|
using Marr.Data;
|
2011-06-03 00:06:46 +03:00
|
|
|
using NUnit.Framework;
|
2013-02-24 09:48:52 +03:00
|
|
|
using NzbDrone.Core.Configuration;
|
2013-03-01 10:03:41 +03:00
|
|
|
using NzbDrone.Core.MediaFiles;
|
2013-03-07 00:20:33 +03:00
|
|
|
using NzbDrone.Core.Organizer;
|
2013-04-11 18:28:08 +03:00
|
|
|
using NzbDrone.Core.RootFolders;
|
2013-02-19 09:01:03 +03:00
|
|
|
using NzbDrone.Core.Tv;
|
2011-05-19 06:55:35 +03:00
|
|
|
using NzbDrone.Core.Test.Framework;
|
2010-10-21 04:49:23 +03:00
|
|
|
|
2013-03-01 10:03:41 +03:00
|
|
|
namespace NzbDrone.Core.Test.MediaFileTests
|
2010-10-21 04:49:23 +03:00
|
|
|
{
|
|
|
|
[TestFixture]
|
2013-03-05 04:47:51 +03:00
|
|
|
public class MediaFileServiceTest : CoreTest<MediaFileService>
|
2010-10-21 04:49:23 +03:00
|
|
|
{
|
2011-06-18 07:08:17 +03:00
|
|
|
|
2011-06-21 02:46:54 +03:00
|
|
|
[Test]
|
2013-01-01 06:45:57 +03:00
|
|
|
[TestCase("Law & Order: Criminal Intent - S10E07 - Icarus [HDTV-720p]", "Law & Order- Criminal Intent - S10E07 - Icarus [HDTV-720p]")]
|
2011-06-21 02:46:54 +03:00
|
|
|
public void CleanFileName(string name, string expectedName)
|
|
|
|
{
|
2013-03-07 00:20:33 +03:00
|
|
|
FileNameBuilder.CleanFilename(name).Should().Be(expectedName);
|
2011-06-21 02:46:54 +03:00
|
|
|
}
|
2010-10-21 04:49:23 +03:00
|
|
|
}
|
2011-04-10 05:44:01 +03:00
|
|
|
}
|