AWSSDK.UnitTests.LitJsonModificationTests.IsNumberTypeTest C# (CSharp) Method

IsNumberTypeTest() private method

private IsNumberTypeTest ( ) : void
return void
        public void IsNumberTypeTest()
        {
            string numberJson =
@"{
    ""Zero""   : 0,
    ""PInt""   : 2147483647,
    ""NInt""   : -2147483648,
    ""UInt""   : 4294967295,
    ""Long""   : 4294967296,
    ""PLong""  : 9223372036854775807,
    ""NLong""  : -9223372036854775808, 
    ""ULong""  : 18446744073709551615,
    ""Double"" : 0.0,
    ""PDouble"": 1.7976931348623157E+308,
    ""NDouble"": -1.7976931348623157E+308
}";
            JsonData data = JsonMapper.ToObject(numberJson);

            Assert.IsTrue(data["Zero"].IsInt);
            Assert.IsTrue(data["PInt"].IsInt);
            Assert.IsTrue(data["NInt"].IsInt);
            Assert.IsTrue(data["UInt"].IsUInt);

            Assert.IsTrue(data["Long"].IsLong);
            Assert.IsTrue(data["PLong"].IsLong);
            Assert.IsTrue(data["NLong"].IsLong);
            Assert.IsTrue(data["ULong"].IsULong);

            Assert.IsTrue(data["Double"].IsDouble);
            Assert.IsTrue(data["PDouble"].IsDouble);
            Assert.IsTrue(data["NDouble"].IsDouble);
        }