public void SetUp()
        {
            string json = @"{""duck"":""quack"",""isADuck"":true,""age"":5,""foo"":null,""bar"":{baz:1},""numbers"":[0,1,3],""strs"":[""c"",""d""]}";

            d = DHash.FromJson(json);
        }
Exemple #2
0
        public void FromJson_WihDoubleValue()
        {
            d = DHash.FromJson("{\"thing\":1.2345678912345679E+26}");

            Assert.That((double)d.thing, Is.EqualTo(123456789123456789123456789.123456789));
        }