Fix broken tests

This commit is contained in:
Mark McDowall 2019-03-04 19:47:24 -08:00
parent 4eb9a1cfa5
commit 6b517d7ffd
2 changed files with 3 additions and 3 deletions

View File

@ -48,11 +48,11 @@ namespace NzbDrone.Core.Test.OrganizerTests
{ {
var filename = @"S01E05 - Episode Title"; var filename = @"S01E05 - Episode Title";
var seasonNumber = 1; 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() var fakeSeries = Builder<Series>.CreateNew()
.With(s => s.Title = "NCIS: Los Angeles") .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) .With(s => s.SeasonFolder = true)
.Build(); .Build();

View File

@ -8,7 +8,7 @@ namespace NzbDrone.Core.Test.OrganizerTests
[TestFixture] [TestFixture]
public class CleanFilenameFixture : CoreTest 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) public void should_replaace_invalid_characters(string name, string expectedName)
{ {
FileNameBuilder.CleanFileName(name).Should().Be(expectedName); FileNameBuilder.CleanFileName(name).Should().Be(expectedName);