public void GetExtObject1()
{
MyObject obj = new MyObject(1, _output);
m_xsltArg = new XsltArgumentList();
m_xsltArg.AddExtensionObject(szDefaultNS, obj);
retObj = m_xsltArg.GetExtensionObject(szDefaultNS);
_output.WriteLine("Retrieved value: {0}", ((MyObject)retObj).MyValue());
if (((MyObject)retObj).MyValue() != obj.MyValue())
{
_output.WriteLine("Set and retrieved value appear to be different");
Assert.True(false);
}
string expXml = "<?xml version=\"1.0\" encoding=\"utf-8\"?><result xmlns:myObj=\"urn:my-object\"><func1>1.Test1</func1><func2>2.Test2</func2><func3>3.Test3</func3></result>";
if ((LoadXSL("myObjectDef.xsl") == 1) && (Transform_ArgList("fruits.xml") == 1) &&
(CheckResult(expXml) == 1))
return;
else
Assert.True(false);
}