dvr.Read (); // root\r
dvr.Read (); // &ent3;\r
Assert.AreEqual (XmlNodeType.EntityReference, dvr.NodeType);\r
-#if NET_2_0\r
// under .NET 2.0, an error is raised here.\r
// under .NET 1.1, the error is thrown on the next read.\r
try {\r
Assert.Fail ("Attempt to resolve undeclared entity should fail.");\r
} catch (XmlException) {\r
}\r
-#else\r
- // ent3 does not exist in this dtd.\r
- dvr.ResolveEntity ();\r
- Assert.AreEqual (XmlNodeType.EntityReference, dvr.NodeType);\r
- try {\r
- dvr.Read ();\r
- Assert.Fail ("Attempt to resolve undeclared entity should fail.");\r
- } catch (XmlException) {\r
- }\r
-#endif\r
}\r
\r
[Test]\r
\r
[Test]\r
//[NotWorking ("default namespace seems null, not String.Empty")]\r
-#if NET_2_0\r
-#else\r
- // MS.NET 1.x does not consider cases that xmlns* attributes\r
- // could be declared as default.\r
- [Category ("NotDotNet")]\r
-#endif\r
public void DefaultXmlnsAttributeLookup ()\r
{\r
string xml = @"<!DOCTYPE X [\r
Assert.AreEqual ("urn:hoge", xvr.LookupNamespace ("bar"), "#8-2");\r
}\r
\r
-#if NET_2_0\r
[Test]\r
[ExpectedException (typeof (XmlSchemaException))]\r
public void Bug80231 ()\r
while (!r.EOF)\r
r.Read ();\r
}\r
-#endif\r
\r
-#if NET_2_0 \r
[Test] \r
public void Bug501814 ()\r
{\r
doc.Schemas.Add (schema);\r
doc.Validate (null);\r
}\r
-#endif\r
\r
-#if NET_2_0\r
[Test] \r
public void Bug502168 ()\r
{\r
doc.Schemas.Add(schema);\r
doc.Validate(null);\r
}\r
-#endif \r
}\r
}\r