sonarr-repo-only/NzbDrone.Core.Test/MediaFileTests/MediaFileServiceTest.cs

26 lines
766 B
C#
Raw Normal View History

2013-03-01 07:03:41 +00:00
using System.Linq;
using FizzWare.NBuilder;
2011-06-02 21:06:46 +00:00
using FluentAssertions;
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;
using NzbDrone.Core.Organizer;
using NzbDrone.Core.RootFolders;
using NzbDrone.Core.Tv;
using NzbDrone.Core.Test.Framework;
2013-03-01 07:03:41 +00:00
namespace NzbDrone.Core.Test.MediaFileTests
{
[TestFixture]
2013-03-05 01:47:51 +00:00
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);
}
}
2011-04-10 02:44:01 +00:00
}