2013-04-15 03:41:39 +02:00
|
|
|
using FluentAssertions;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NzbDrone.Core.Configuration;
|
|
|
|
using NzbDrone.Core.Test.Framework;
|
|
|
|
using NzbDrone.Core.Update;
|
2013-04-16 02:08:06 +02:00
|
|
|
using System.Linq;
|
2013-04-15 03:41:39 +02:00
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.UpdateTests
|
|
|
|
{
|
|
|
|
public class UpdatePackageProviderFixture : CoreTest<UpdatePackageProvider>
|
|
|
|
{
|
2013-04-16 02:08:06 +02:00
|
|
|
[Test]
|
2013-07-30 04:12:16 +02:00
|
|
|
public void should_get_list_of_available_updates()
|
2013-04-16 02:08:06 +02:00
|
|
|
{
|
|
|
|
UseRealHttp();
|
2013-04-15 03:41:39 +02:00
|
|
|
|
2013-08-10 07:00:07 +02:00
|
|
|
Mocker.GetMock<IConfigFileProvider>().SetupGet(c => c.Branch).Returns("master");
|
2013-04-16 02:08:06 +02:00
|
|
|
|
2013-08-24 04:21:12 +02:00
|
|
|
Subject.GetLatestUpdate().Should().BeNull();
|
2013-04-16 02:08:06 +02:00
|
|
|
}
|
2013-04-15 03:41:39 +02:00
|
|
|
}
|
|
|
|
}
|