Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Sonarr/blame/commit/780e374122b3e8f76e25ce63742cf50dd7c40d0d/NzbDrone.Core.Test/IndexerTests/XElementExtensionsFixture.cs
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
|
using System;
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Core.Test.IndexerTests
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class XElementExtensionsFixture : TestBase
|
|
|
|
|
{
|
|
|
|
|
[TestCase("Wed, 07 Aug 2013 20:37:48 +0000")]
|
|
|
|
|
[TestCase("Wed, 07 Aug 2013 18:08:46 MST")]
|
|
|
|
|
public void should_parse_date(string dateString)
|
|
|
|
|
{
|
|
|
|
|
var element = new XElement("root");
|
|
|
|
|
element.Add(new XElement("pubDate", dateString));
|
|
|
|
|
|
|
|
|
|
var date = element.PublishDate();
|
|
|
|
|
date.Year.Should().Be(2013);
|
|
|
|
|
date.Kind.Should().Be(DateTimeKind.Utc);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|