Esempio n. 1
0
        public void JSonDataValuesWithSpace()
        {
            string   tag    = "\n<os:Var key='foo' >\n\n{'displayName':'John'}\n\n</os:Var>";
            OsVar    target = new OsVar(tag);
            JsonData json   = target.GetVariableValue() as JsonData;

            Assert.IsNotNull(json, "Didn't parse to JSON");
            Assert.AreEqual("John", json.ResolveExpressionValue("displayName"));
        }
Esempio n. 2
0
        public void SimpleVariableValues(string tag, object expectedValue)
        {
            OsVar target = new OsVar(tag);

            Assert.AreEqual(expectedValue, target.GetVariableValue());
        }