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); }
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); }