using System.Xml.Schema;\r
using NUnit.Framework;\r
\r
-#if NET_2_0\r
using ValidationException = System.Xml.Schema.XmlSchemaValidationException;\r
-#else\r
-using ValidationException = System.Xml.Schema.XmlSchemaException;\r
-#endif\r
\r
namespace MonoTests.System.Xml\r
{\r
}\r
\r
[Test]\r
-#if NET_2_0\r
[Category ("NotDotNet")]\r
// MS.NET throws XmlSchemaException, not -ValidationException.\r
-#endif\r
[ExpectedException (typeof (ValidationException))]\r
public void ValidateRootElementOnlyInvalid ()\r
{\r