// // 2002-2005 AlphaSierraPapa // GNU General Public License // // $Revision$ // using ICSharpCode.TextEditor.Gui.CompletionWindow; using ICSharpCode.XmlEditor; using NUnit.Framework; using System; using System.IO; namespace XmlEditor.Tests.Schema { /// /// Element that is a simple content type. /// [TestFixture] public class SimpleContentWithAttributeSchemaTestFixture : SchemaTestFixtureBase { ICompletionData[] attributeCompletionData; public override void FixtureInit() { XmlElementPath path = new XmlElementPath(); path.Elements.Add(new QualifiedName("foo", "http://foo.com")); attributeCompletionData = SchemaCompletionData.GetAttributeCompletionData(path); } [Test] public void BarAttributeExists() { Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "bar"), "Attribute bar does not exist."); } protected override string GetSchema() { return "\r\n" + "\t\r\n" + "\t\t\r\n" + "\t\t\t\r\n" + "\t\t\t\t\r\n" + "\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\t\r\n" + "\t\t\t\t\t\r\n" + "\t\t\t\t\t\r\n" + "\t\t\t\t\t\r\n" + "\t\t\t\t\r\n" + "\t\t\t\r\n" + "\t\t\r\n" + "\t\r\n" + ""; } } }