mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Fixed some compile warnings.
This commit is contained in:
@@ -14,8 +14,6 @@ namespace NzbDrone.Core.Test.Datastore.Migration
|
||||
[Test]
|
||||
public void should_convert_comma_separted_string_to_list()
|
||||
{
|
||||
var deviceId = "device_id";
|
||||
|
||||
WithTestDb(c =>
|
||||
{
|
||||
c.Insert.IntoTable("Notifications").Row(new
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Moq;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.HealthCheck.Checks;
|
||||
using NzbDrone.Core.Indexers;
|
||||
@@ -10,17 +11,17 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
||||
[TestFixture]
|
||||
public class IndexerCheckFixture : CoreTest<IndexerCheck>
|
||||
{
|
||||
private IIndexer _indexer;
|
||||
private Mock<IIndexer> _indexerMock;
|
||||
|
||||
private void GivenIndexer(bool supportsRss, bool supportsSearch)
|
||||
{
|
||||
var _indexer = Mocker.GetMock<IIndexer>();
|
||||
_indexer.SetupGet(s => s.SupportsRss).Returns(supportsRss);
|
||||
_indexer.SetupGet(s => s.SupportsSearch).Returns(supportsSearch);
|
||||
_indexerMock = Mocker.GetMock<IIndexer>();
|
||||
_indexerMock.SetupGet(s => s.SupportsRss).Returns(supportsRss);
|
||||
_indexerMock.SetupGet(s => s.SupportsSearch).Returns(supportsSearch);
|
||||
|
||||
Mocker.GetMock<IIndexerFactory>()
|
||||
.Setup(s => s.GetAvailableProviders())
|
||||
.Returns(new List<IIndexer> { _indexer.Object });
|
||||
.Returns(new List<IIndexer> { _indexerMock.Object });
|
||||
|
||||
Mocker.GetMock<IIndexerFactory>()
|
||||
.Setup(s => s.RssEnabled())
|
||||
@@ -35,14 +36,14 @@ namespace NzbDrone.Core.Test.HealthCheck.Checks
|
||||
{
|
||||
Mocker.GetMock<IIndexerFactory>()
|
||||
.Setup(s => s.RssEnabled())
|
||||
.Returns(new List<IIndexer> { _indexer });
|
||||
.Returns(new List<IIndexer> { _indexerMock.Object });
|
||||
}
|
||||
|
||||
private void GivenSearchEnabled()
|
||||
{
|
||||
Mocker.GetMock<IIndexerFactory>()
|
||||
.Setup(s => s.SearchEnabled())
|
||||
.Returns(new List<IIndexer> { _indexer });
|
||||
.Returns(new List<IIndexer> { _indexerMock.Object });
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc.Json
|
||||
private const int TVDB_ID = 5;
|
||||
private XbmcSettings _settings;
|
||||
private Series _series;
|
||||
private string _response;
|
||||
private List<TvShow> _xbmcSeries;
|
||||
|
||||
[SetUp]
|
||||
|
||||
@@ -16,7 +16,6 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc.Json
|
||||
{
|
||||
private const int TVDB_ID = 5;
|
||||
private XbmcSettings _settings;
|
||||
private Series _series;
|
||||
private List<TvShow> _xbmcSeries;
|
||||
|
||||
[SetUp]
|
||||
|
||||
Reference in New Issue
Block a user