1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Update series test

This commit is contained in:
Mark McDowall 2014-07-27 12:12:55 -07:00
parent b63eb4efd7
commit 174a209c66

View File

@ -54,5 +54,20 @@ public void should_not_update_path_when_rootFolderPath_is_empty()
s.Path.Should().Be(expectedPath); s.Path.Should().Be(expectedPath);
}); });
} }
[Test]
public void should_be_able_to_update_many_series()
{
var series = Builder<Series>.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);
}
} }
} }