Radarr/src/NzbDrone.Core.Test/MovieTests/MovieTitleNormalizerFixture.cs
Leonardo Galli 77f146b262
Added: Ability to add custom formats, working similar to qualities. (#2669)
Originally called project metis, this feature allows you to do a lot of cool stuff, such as upgrading to a x265 encode, downloading releases with multiple languages, etc. Check out the wiki page at: https://github.com/Radarr/Radarr/wiki/Custom-Formats to learn more! Note: This feature is currently in "beta" and will get more tags and features in the future. Please let me know, if you have any issues and I hope this will allow for a lot of customization!
2018-08-05 16:28:05 +02:00

31 lines
1.1 KiB
C#

using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Movies;
namespace NzbDrone.Core.Test.MovieTests
{
[TestFixture]
public class MovieTitleNormalizerFixture
{
//TODO: Decide on reimplementing this!
/*
[TestCase("A to Z", 281588, "a to z")]
[TestCase("A. D. - The Trials & Triumph of the Early Church", 266757, "ad trials triumph early church")]
public void should_use_precomputed_title(string title, int tvdbId, string expected)
{
MovieTitleNormalizer.Normalize(title, tvdbId).Should().Be(expected);
}*/
[TestCase("2 Broke Girls", "2 broke girls")]
[TestCase("Archer (2009)", "archer 2009")]
[TestCase("The Office (US)", "office us")]
[TestCase("The Mentalist", "mentalist")]
[TestCase("The Good Wife", "good wife")]
[TestCase("The Newsroom (2012)", "newsroom 2012")]
[TestCase("Special Agent Oso", "special agent oso")]
public void should_normalize_title(string title, string expected)
{
MovieTitleNormalizer.Normalize(title, 0).Should().Be(expected);
}
}
}