示例#1
0
        public void DataComponentsUntyped()
        {
            var div = dom["div"];

            Assert.AreEqual("a string", dom.Data("s"));
            Assert.AreEqual(1, dom.Data("n1"));
            Assert.AreEqual(1.3, dom.Data("n2"));
            Assert.AreEqual(false, dom.Data("b"));
            Assert.AreEqual("json string", dom.Data("s2"));
        }