mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 04:51:45 +02:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
@@ -12,7 +12,7 @@ namespace NzbDrone.Libraries.Test.JsonTests
|
||||
public class TypeWithNumbers
|
||||
{
|
||||
public int Int32 { get; set; }
|
||||
public Int64 Int64 { get; set; }
|
||||
public long Int64 { get; set; }
|
||||
public int? nullableIntIsNull { get; set; }
|
||||
public int? nullableWithValue { get; set; }
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace NzbDrone.Libraries.Test.JsonTests
|
||||
[Test]
|
||||
public void should_be_able_to_deserialize_numbers()
|
||||
{
|
||||
var quality = new TypeWithNumbers { Int32 = Int32.MaxValue, Int64 = Int64.MaxValue, nullableWithValue = 12 };
|
||||
var quality = new TypeWithNumbers { Int32 = int.MaxValue, Int64 = long.MaxValue, nullableWithValue = 12 };
|
||||
var result = Json.Deserialize<TypeWithNumbers>(quality.ToJson());
|
||||
|
||||
result.ShouldBeEquivalentTo(quality, o => o.IncludingAllRuntimeProperties());
|
||||
|
Reference in New Issue
Block a user