Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Prowlarr/src/commit/f716a6d9fd5c86310fb5fb335fa429a263a68cba/NzbDrone.Libraries.Test/JsonTests/JsonFixture.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Prowlarr/NzbDrone.Libraries.Test/JsonTests/JsonFixture.cs

30 lines
862 B

using System;
using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Common.Serializer;
using NzbDrone.Test.Common;
namespace NzbDrone.Libraries.Test.JsonTests
{
[TestFixture]
public class JsonFixture : TestBase
{
public class TypeWithNumbers
{
public int Int32 { get; set; }
public Int64 Int64 { get; set; }
public int? nullableIntIsNull { get; set; }
public int? nullableWithValue { get; set; }
}
[Test]
public void should_be_able_to_deserialize_numbers()
{
var quality = new TypeWithNumbers { Int32 = Int32.MaxValue, Int64 = Int64.MaxValue, nullableWithValue = 12 };
var result = Json.Deserialize<TypeWithNumbers>(quality.ToJson());
result.ShouldHave().AllProperties().EqualTo(quality);
}
}
}