mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
33 lines
777 B
C#
33 lines
777 B
C#
using System;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Wabbajack.Common;
|
|
using Wabbajack.Lib.NexusApi;
|
|
using Xunit;
|
|
using Xunit.Abstractions;
|
|
|
|
namespace Wabbajack.Test
|
|
{
|
|
public class NexusTests : ATestBase
|
|
{
|
|
[Fact]
|
|
public async Task CanGetNexusRSSUpdates()
|
|
{
|
|
var results = (await NexusUpdatesFeeds.GetUpdates()).ToArray();
|
|
|
|
Assert.NotEmpty(results);
|
|
|
|
Utils.Log($"Loaded {results.Length} updates from the Nexus");
|
|
|
|
foreach (var result in results)
|
|
{
|
|
Assert.True(DateTime.UtcNow - result.TimeStamp < TimeSpan.FromDays(1));
|
|
}
|
|
}
|
|
|
|
public NexusTests(ITestOutputHelper output) : base(output)
|
|
{
|
|
}
|
|
}
|
|
}
|