mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-12 11:15:43 +02:00
Fixed unit tests.
This commit is contained in:
parent
445e2f59b9
commit
a413a9d53d
@ -20,18 +20,18 @@ public class HistoryProviderTest
|
|||||||
public void AllItems()
|
public void AllItems()
|
||||||
{
|
{
|
||||||
//Setup
|
//Setup
|
||||||
var indexer = new Indexer {Enabled = true, IndexerName = "NzbMatrix", Order = 1, RssUrl = "http://www.nzbmatrix.com"};
|
var indexer = new Indexer { Enabled = true, IndexerName = "NzbMatrix", Order = 1, RssUrl = "http://www.nzbmatrix.com" };
|
||||||
var series = new Series
|
var series = new Series
|
||||||
{
|
{
|
||||||
SeriesId = 5656,
|
SeriesId = 5656,
|
||||||
CleanTitle = "rock",
|
CleanTitle = "rock",
|
||||||
Monitored = true,
|
Monitored = true,
|
||||||
Overview = "Series Overview",
|
Overview = "Series Overview",
|
||||||
Quality = 1,
|
ProfileId = 1,
|
||||||
Title = "30 Rock",
|
Title = "30 Rock",
|
||||||
Path = @"C:\Test\TV\30 Rock"
|
Path = @"C:\Test\TV\30 Rock"
|
||||||
};
|
};
|
||||||
var season = new Season{SeasonId = 4321, SeasonNumber = 1, SeriesId = 5656, Monitored = true};
|
var season = new Season { SeasonId = 4321, SeasonNumber = 1, SeriesId = 5656, Monitored = true };
|
||||||
var episode = new Episode
|
var episode = new Episode
|
||||||
{
|
{
|
||||||
AirDate = DateTime.Today.AddDays(-1),
|
AirDate = DateTime.Today.AddDays(-1),
|
||||||
@ -81,7 +81,7 @@ public void Exists_True()
|
|||||||
CleanTitle = "rock",
|
CleanTitle = "rock",
|
||||||
Monitored = true,
|
Monitored = true,
|
||||||
Overview = "Series Overview",
|
Overview = "Series Overview",
|
||||||
Quality = 1,
|
ProfileId = 1,
|
||||||
Title = "30 Rock",
|
Title = "30 Rock",
|
||||||
Path = @"C:\Test\TV\30 Rock"
|
Path = @"C:\Test\TV\30 Rock"
|
||||||
};
|
};
|
||||||
@ -138,7 +138,7 @@ public void Exists_False()
|
|||||||
CleanTitle = "rock",
|
CleanTitle = "rock",
|
||||||
Monitored = true,
|
Monitored = true,
|
||||||
Overview = "Series Overview",
|
Overview = "Series Overview",
|
||||||
Quality = 1,
|
ProfileId = 1,
|
||||||
Title = "30 Rock",
|
Title = "30 Rock",
|
||||||
Path = @"C:\Test\TV\30 Rock"
|
Path = @"C:\Test\TV\30 Rock"
|
||||||
};
|
};
|
||||||
|
@ -104,13 +104,13 @@
|
|||||||
</Content>
|
</Content>
|
||||||
<Content Include="Libs\FizzWare.NBuilder.dll" />
|
<Content Include="Libs\FizzWare.NBuilder.dll" />
|
||||||
<Content Include="Files\Queue.xml">
|
<Content Include="Files\Queue.xml">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Files\QueueEmpty.xml">
|
<Content Include="Files\QueueEmpty.xml">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Files\QueueError.xml">
|
<Content Include="Files\QueueError.xml">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</Content>
|
</Content>
|
||||||
<Content Include="Libs\Moq.dll" />
|
<Content Include="Libs\Moq.dll" />
|
||||||
<Content Include="Libs\Moq.xml" />
|
<Content Include="Libs\Moq.xml" />
|
||||||
|
Loading…
Reference in New Issue
Block a user