From 174a209c66e3f6a90707e52c3e2911381f1d0e00 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 27 Jul 2014 12:12:55 -0700 Subject: [PATCH] Update series test --- .../UpdateMultipleSeriesFixture.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/NzbDrone.Core.Test/TvTests/SeriesServiceTests/UpdateMultipleSeriesFixture.cs b/src/NzbDrone.Core.Test/TvTests/SeriesServiceTests/UpdateMultipleSeriesFixture.cs index f0585131d..0fa33a68f 100644 --- a/src/NzbDrone.Core.Test/TvTests/SeriesServiceTests/UpdateMultipleSeriesFixture.cs +++ b/src/NzbDrone.Core.Test/TvTests/SeriesServiceTests/UpdateMultipleSeriesFixture.cs @@ -54,5 +54,20 @@ public void should_not_update_path_when_rootFolderPath_is_empty() s.Path.Should().Be(expectedPath); }); } + + [Test] + public void should_be_able_to_update_many_series() + { + var series = Builder.CreateListOfSize(50) + .All() + .With(s => s.Path = (@"C:\Test\TV\" + s.Path).AsOsAgnostic()) + .Build() + .ToList(); + + var newRoot = @"C:\Test\TV2".AsOsAgnostic(); + series.ForEach(s => s.RootFolderPath = newRoot); + + Subject.UpdateSeries(series); + } } } \ No newline at end of file