Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/addins/Xml/Tests/Schema/SimpleContentWithAttributeTestFixture.cs')
-rw-r--r--main/src/addins/Xml/Tests/Schema/SimpleContentWithAttributeTestFixture.cs14
1 files changed, 10 insertions, 4 deletions
diff --git a/main/src/addins/Xml/Tests/Schema/SimpleContentWithAttributeTestFixture.cs b/main/src/addins/Xml/Tests/Schema/SimpleContentWithAttributeTestFixture.cs
index b83fc5e7e2..979b34b886 100644
--- a/main/src/addins/Xml/Tests/Schema/SimpleContentWithAttributeTestFixture.cs
+++ b/main/src/addins/Xml/Tests/Schema/SimpleContentWithAttributeTestFixture.cs
@@ -1,3 +1,5 @@
+using System.Threading;
+using System.Threading.Tasks;
using MonoDevelop.Ide.CodeCompletion;
using MonoDevelop.Xml.Completion;
using NUnit.Framework;
@@ -12,17 +14,21 @@ namespace MonoDevelop.Xml.Tests.Schema
{
CompletionDataList attributeCompletionData;
- public override void FixtureInit()
- {
+ async Task Init ()
+ {
+ if (attributeCompletionData != null)
+ return;
+
XmlElementPath path = new XmlElementPath();
path.Elements.Add(new QualifiedName("foo", "http://foo.com"));
- attributeCompletionData = SchemaCompletionData.GetAttributeCompletionData(path);
+ attributeCompletionData = await SchemaCompletionData.GetAttributeCompletionData(path, CancellationToken.None);
}
[Test]
- public void BarAttributeExists()
+ public async Task BarAttributeExists()
{
+ await Init ();
Assert.IsTrue(SchemaTestFixtureBase.Contains(attributeCompletionData, "bar"),
"Attribute bar does not exist.");
}