You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Core.Test/UpdateTests/UpdatePackageProviderFixtur...

27 lines
700 B

11 years ago
using System;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Core.Update;
namespace NzbDrone.Core.Test.UpdateTests
{
public class UpdatePackageProviderFixture : CoreTest<UpdatePackageProvider>
{
12 years ago
[Test]
11 years ago
public void no_update_when_version_higher()
12 years ago
{
UseRealHttp();
11 years ago
Subject.GetLatestUpdate("master", new Version(10,0)).Should().BeNull();
}
11 years ago
[Test]
public void finds_update_when_version_lower()
{
UseRealHttp();
Subject.GetLatestUpdate("master", new Version(1, 0)).Should().NotBeNull();
12 years ago
}
}
}