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;
10
using XmlEditor.Tests.Utils;
11
using XmlEditor.Tests.Schema;
13
namespace XmlEditor.Tests.Schema.Includes
16
/// Tests that schemas referenced via xs:include elements are used when
17
/// generating completion data.
20
public class AttributeGroupRefSchemaIncludeTestFixture : AttributeGroupRefTestFixture
23
public void FixtureTearDown()
25
SchemaIncludeTestFixtureHelper.FixtureTearDown();
28
protected override XmlSchemaCompletion CreateSchemaCompletionObject()
30
return SchemaIncludeTestFixtureHelper.CreateSchemaCompletionDataObject(GetMainSchema(), GetSchema());
33
string GetMainSchema()
35
return "<xs:schema \r\n" +
36
"targetNamespace=\"http://www.w3schools.com\" \r\n" +
37
"xmlns:xs=\"http://www.w3.org/2001/XMLSchema\" \r\n" +
38
"elementFormDefault=\"qualified\">\r\n" +
39
"\t<xs:include schemaLocation=\"include.xsd\"/>\r\n" +