wabbajack/Wabbajack.Test/NexusTests.cs

33 lines
778 B
C#
Raw Normal View History

2020-04-10 22:31:06 +00:00
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
{
2021-07-06 11:49:04 +00:00
// Disable for now
/*
2020-04-10 22:31:06 +00:00
[Fact]
public async Task CanGetNexusRSSUpdates()
{
var results = (await NexusUpdatesFeeds.GetUpdates()).ToArray();
Utils.Log($"Loaded {results.Length} updates from the Nexus");
foreach (var result in results)
{
Assert.True(DateTime.UtcNow - result.TimeStamp < TimeSpan.FromDays(1));
}
2021-07-06 11:49:04 +00:00
}*/
2020-04-10 22:31:06 +00:00
public NexusTests(ITestOutputHelper output) : base(output)
{
}
}
}