public void AsInteger()
        {
            IJsonValue value = null;

            Assert.IsNull(value.AsInteger());
            Assert.IsNull(JsonExtensions.Null().AsInteger());
            Assert.IsNull(new JsonObject().AsInteger());
            Assert.IsNull(JsonValue.CreateStringValue("2.0").AsInteger());
            Assert.IsNull(JsonValue.CreateBooleanValue(true).AsInteger());
            Assert.IsNull(new JsonArray().AsInteger());
            Assert.AreEqual(2, JsonValue.CreateNumberValue(2).AsInteger());
            Assert.AreEqual(2, JsonValue.CreateNumberValue(2.2).AsInteger());
        }