2013-10-01 22:32:08 +03:00
|
|
|
using System.Linq;
|
|
|
|
using FluentAssertions;
|
2013-05-03 08:24:52 +03:00
|
|
|
using NUnit.Framework;
|
2013-10-01 22:32:08 +03:00
|
|
|
using NzbDrone.Core.ThingiProvider;
|
2013-05-03 08:24:52 +03:00
|
|
|
|
|
|
|
namespace NzbDrone.Integration.Test
|
|
|
|
{
|
|
|
|
[TestFixture]
|
|
|
|
public class IndexerIntegrationFixture : IntegrationTest
|
|
|
|
{
|
|
|
|
[Test]
|
|
|
|
public void should_have_built_in_indexer()
|
|
|
|
{
|
|
|
|
var indexers = Indexers.All();
|
|
|
|
|
|
|
|
indexers.Should().NotBeEmpty();
|
|
|
|
indexers.Should().NotContain(c => string.IsNullOrWhiteSpace(c.Name));
|
2013-10-01 22:32:08 +03:00
|
|
|
indexers.Where(c => c.ConfigContract == typeof(NullConfig).Name).Should().OnlyContain(c => c.Enable);
|
2013-05-03 08:24:52 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|