mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
more tests and bug fixes
This commit is contained in:
parent
282870cd80
commit
e074164a47
7 changed files with 86 additions and 13 deletions
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using AutoMoq;
|
||||
using MbUnit.Framework;
|
||||
using Moq;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
@ -63,6 +64,30 @@ namespace NzbDrone.Core.Test
|
|||
Assert.AreEqual(result.Count(), 1);
|
||||
}
|
||||
|
||||
|
||||
[Test]
|
||||
public void add_item()
|
||||
{
|
||||
var mocker = new AutoMoqer();
|
||||
var repo = MockLib.GetEmptyRepository();
|
||||
|
||||
mocker.SetConstant(repo);
|
||||
|
||||
var episodes = MockLib.GetFakeEpisodes(1);
|
||||
repo.AddMany(episodes);
|
||||
|
||||
var episode = episodes[5];
|
||||
|
||||
var history = new History
|
||||
{
|
||||
Date = DateTime.Now,
|
||||
EpisodeId = episode.EpisodeId,
|
||||
NzbTitle = "my title"
|
||||
};
|
||||
|
||||
mocker.Resolve<HistoryProvider>().Add(history);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Ignore]
|
||||
public void Exists_True()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue