mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Replaced built-in valuetypes with language keywords.
This commit is contained in:
parent
d6a135857d
commit
ccfa13e383
454 changed files with 2042 additions and 2042 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue