[Test]
-#if NET_2_0
[ExpectedException (typeof (ArgumentNullException))]
-#else
- [ExpectedException (typeof (NullReferenceException))]
-#endif
public void EmptyXslt ()
{
string test = "<Test>XmlDsigXsltTransform</Test>";
transform.LoadInnerXml (doc.ChildNodes);
Stream s = (Stream) transform.GetOutput ();
}
-#if NET_2_0
catch (Exception e) {
// we must deal with an internal exception
result = (e.GetType ().ToString ().EndsWith ("XsltLoadException"));
result = true;
-#else
- catch (XsltCompileException) {
- result = true;
-#endif
}
finally {
Assert.IsTrue (result, "Exception not thrown");
}
[Test]
-#if NET_2_0
[ExpectedException (typeof (ArgumentNullException))]
-#else
- [ExpectedException (typeof (NullReferenceException))]
-#endif
public void OnlyInner ()
{
string test = "<xsl:stylesheet xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" xmlns=\"http://www.w3.org/TR/xhtml1/strict\" version=\"1.0\">";