2013-04-07 10:30:37 +03:00
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Core.IndexerSearch.Definitions;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.IndexerSearchTests
|
|
|
|
{
|
2013-06-06 17:42:23 +03:00
|
|
|
public class SearchDefinitionFixture : CoreTest<SingleEpisodeSearchCriteria>
|
2013-04-07 10:30:37 +03:00
|
|
|
{
|
|
|
|
[TestCase("Betty White's Off Their Rockers", Result = "Betty+Whites+Off+Their+Rockers")]
|
|
|
|
[TestCase("Star Wars: The Clone Wars", Result = "Star+Wars+The+Clone+Wars")]
|
|
|
|
[TestCase("Hawaii Five-0", Result = "Hawaii+Five+0")]
|
|
|
|
[TestCase("Franklin & Bash", Result = "Franklin+and+Bash")]
|
|
|
|
public string should_replace_some_special_characters(string input)
|
|
|
|
{
|
|
|
|
Subject.SceneTitle = input;
|
|
|
|
return Subject.QueryTitle;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|