Fix broken tests
This commit is contained in:
parent
4eb9a1cfa5
commit
6b517d7ffd
|
@ -48,11 +48,11 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|||
{
|
||||
var filename = @"S01E05 - Episode Title";
|
||||
var seasonNumber = 1;
|
||||
var expectedPath = @"C:\Test\NCIS- Los Angeles\NCIS- Los Angeles Season 1\S01E05 - Episode Title.mkv";
|
||||
var expectedPath = @"C:\Test\NCIS - Los Angeles\NCIS - Los Angeles Season 1\S01E05 - Episode Title.mkv";
|
||||
|
||||
var fakeSeries = Builder<Series>.CreateNew()
|
||||
.With(s => s.Title = "NCIS: Los Angeles")
|
||||
.With(s => s.Path = @"C:\Test\NCIS- Los Angeles".AsOsAgnostic())
|
||||
.With(s => s.Path = @"C:\Test\NCIS - Los Angeles".AsOsAgnostic())
|
||||
.With(s => s.SeasonFolder = true)
|
||||
.Build();
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
|
|||
[TestFixture]
|
||||
public class CleanFilenameFixture : CoreTest
|
||||
{
|
||||
[TestCase("Law & Order: Criminal Intent - S10E07 - Icarus [HDTV-720p]", "Law & Order- Criminal Intent - S10E07 - Icarus [HDTV-720p]")]
|
||||
[TestCase("Law & Order: Criminal Intent - S10E07 - Icarus [HDTV-720p]", "Law & Order - Criminal Intent - S10E07 - Icarus [HDTV-720p]")]
|
||||
public void should_replaace_invalid_characters(string name, string expectedName)
|
||||
{
|
||||
FileNameBuilder.CleanFileName(name).Should().Be(expectedName);
|
||||
|
|
Loading…
Reference in New Issue