mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
More config pages have been added. AJAX to save. Order with jquery sortable.
Some RssFeed Parsing has been implemented, it does not currently download items, still need to perform a more verbose episode check.
This commit is contained in:
parent
65ecd58111
commit
da979639ba
145 changed files with 8384 additions and 113 deletions
34
NzbDrone.Core.Test/RssProviderTest.cs
Normal file
34
NzbDrone.Core.Test/RssProviderTest.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Security.Policy;
|
||||
using System.Text;
|
||||
using Gallio.Framework;
|
||||
using MbUnit.Framework;
|
||||
using MbUnit.Framework.ContractVerifiers;
|
||||
using Moq;
|
||||
using NzbDrone.Core.Model;
|
||||
using NzbDrone.Core.Providers;
|
||||
using Rss;
|
||||
|
||||
namespace NzbDrone.Core.Test
|
||||
{
|
||||
[TestFixture]
|
||||
public class RssProviderTest
|
||||
{
|
||||
[Test]
|
||||
public void GetFeed()
|
||||
{
|
||||
//Setup
|
||||
var feedInfo = new FeedInfoModel("NzbMatrix", @"Files\Feed.nzbmatrix.com.xml");
|
||||
var target = new RssProvider();
|
||||
|
||||
//Act
|
||||
var enumerable = target.GetFeed(feedInfo);
|
||||
var result = new List<RssItem>();
|
||||
result.AddRange(enumerable);
|
||||
|
||||
//Assert
|
||||
Assert.GreaterThan(result.Count, 1); //Assert that the number of Items in the feed is greater than 1
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue