public void FixtureInit()
		{
			XmlSchemaCompletionDataCollection items = new XmlSchemaCompletionDataCollection();
			
			StringReader reader = new StringReader(GetSchema(firstNamespace));
			XmlSchemaCompletionData schema = new XmlSchemaCompletionData(reader);
			items.Add(schema);
			
			reader = new StringReader(GetSchema(secondNamespace));
			schema = new XmlSchemaCompletionData(reader);
			items.Add(schema);
			namespaceCompletionData = new CompletionDataList(items.GetNamespaceCompletionData());
		}
Пример #2
0
        public void FixtureInit()
        {
            XmlSchemaCompletionDataCollection items = new XmlSchemaCompletionDataCollection();

            StringReader            reader = new StringReader(GetSchema(firstNamespace));
            XmlSchemaCompletionData schema = new XmlSchemaCompletionData(reader);

            items.Add(schema);

            reader = new StringReader(GetSchema(secondNamespace));
            schema = new XmlSchemaCompletionData(reader);
            items.Add(schema);
            namespaceCompletionData = new CompletionDataList(items.GetNamespaceCompletionData());
        }
        public void FixtureInit()
        {
            XmlSchemaCompletionDataCollection items = new XmlSchemaCompletionDataCollection();

            StringReader reader = new StringReader(GetSchema(firstNamespace));
            XmlSchemaCompletionProvider schema = new XmlSchemaCompletionProvider(reader);

            items.Add(schema);

            reader = new StringReader(GetSchema(secondNamespace));
            schema = new XmlSchemaCompletionProvider(reader);
            items.Add(schema);
            var builder = new XmlSchemaCompletionBuilder(DummyCompletionSource.Instance);

            items.GetNamespaceCompletionData(builder);
            namespaceCompletionData = new CompletionContext(builder.GetItems());
        }