예제 #1
0
    public void GetString()
    {
        JsonObject json = new JsonObject();
        json.ParseDocument(testInput1.text);

        // test direct query
        Assert.That ( json.IsString ("name1") );
        Assert.That ( json.GetString ("name1").Equals(value1) );

        JsonValue jv = json.GetValue("name1");
        Assert.That ( jv.isString );
        Assert.That ( jv.stringValue.Equals(value1) );
    }