1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
4
using ICSharpCode.XmlEditor;
9
using XmlEditor.Tests.Utils;
11
namespace XmlEditor.Tests.Tree
14
/// If the XML loaded contains a DTD reference then if the XmlDocument.XmlResolver is not
15
/// set to null then the XmlTreeEditor will throw an unhandled FileNotFoundException.
18
public class LoadXmlFileWithMissingDtdFileRefTestFixture : XmlTreeViewTestFixtureBase
27
public void RootElementIsLoaded()
29
Assert.AreEqual("Library", editor.Document.DocumentElement.Name);
33
/// Returns the xhtml strict schema as the default schema.
35
protected override XmlSchemaCompletion DefaultSchemaCompletion {
36
get { return new XmlSchemaCompletion(ResourceManager.ReadXhtmlStrictSchema()); }
39
protected override string GetXml()
41
return "<!DOCTYPE Library SYSTEM \"Library.dtd\">\r\n" +
43
" <Book ISBN=\"9999-44-44-3333\" > \r\n" +
44
" <Title>SharpDevelop</Title> \r\n" +
45
" <Author>abc</Author>\r\n" +
46
" <Publisher>SharpDevelop Publications</Publisher>\r\n" +
47
" <Date_Published>22/10/1999</Date_Published>\r\n" +