Replaced built-in valuetypes with language keywords.

This commit is contained in:
Taloth Saldono 2015-10-03 19:45:26 +02:00
commit ccfa13e383
454 changed files with 2042 additions and 2042 deletions

View file

@ -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());