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