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