Beispiel #1
0
        public void TestCreateBool_WithFalse()
        {
            var value  = false;
            var result = JsonValue.CreateBool(value);

            Assert.AreEqual(value, result.Value);
            Assert.AreEqual(JsonValueType.Bool, result.ValueType);
        }
        public void TestGetBool()
        {
            var service = this.GetService();

            var result = service.ToBool(JsonValue.CreateBool(true));

            Assert.AreEqual("true", result);
        }