Ejemplo n.º 1
0
        public void TestParseCopyInt()
        {
            XmlElement int32Def = Document("<int32 name='value'><copy/></int32>");

            Assert.True(_parser.CanParse(int32Def, _context));
            var int32 = (Scalar)_parser.Parse(int32Def, _context);

            AssertScalarField(int32, FastType.I32, "value", null, "", DictionaryFields.Global, "value",
                              Operator.Copy, ScalarValue.Undefined, false);
        }
Ejemplo n.º 2
0
        public void TestParse()
        {
            XmlElement unicodeDef = Document("<string name='message' charset='unicode'/>");

            Assert.IsTrue(_parser.CanParse(unicodeDef, _context));
            var unicode = (Scalar)_parser.Parse(unicodeDef, _context);

            AssertScalarField(unicode, FastType.Unicode, "message", null, "", DictionaryFields.Global, "message",
                              Operator.None, ScalarValue.Undefined, false);
        }