diff options
Diffstat (limited to 'main/src/addins/Xml/Tests/Schema')
3 files changed, 9 insertions, 10 deletions
diff --git a/main/src/addins/Xml/Tests/Schema/AttributeAnnotationTestFixture.cs b/main/src/addins/Xml/Tests/Schema/AttributeAnnotationTestFixture.cs index 071f9ac510..098e18098f 100644 --- a/main/src/addins/Xml/Tests/Schema/AttributeAnnotationTestFixture.cs +++ b/main/src/addins/Xml/Tests/Schema/AttributeAnnotationTestFixture.cs @@ -28,13 +28,13 @@ namespace MonoDevelop.Xml.Tests.Schema [Test]
public void FooAttributeDocumentation()
{
- Assert.AreEqual("Documentation for foo attribute.", fooAttributeCompletionData[0].Description);
+ Assert.AreEqual("Documentation for foo attribute.", ((MonoDevelop.Ide.CodeCompletion.CompletionData)fooAttributeCompletionData[0]).Description);
}
[Test]
public void BarAttributeDocumentation()
{
- Assert.AreEqual("Documentation for bar attribute.", barAttributeCompletionData[0].Description);
+ Assert.AreEqual("Documentation for bar attribute.", ((MonoDevelop.Ide.CodeCompletion.CompletionData)barAttributeCompletionData[0]).Description);
}
protected override string GetSchema()
diff --git a/main/src/addins/Xml/Tests/Schema/ElementAnnotationTestFixture.cs b/main/src/addins/Xml/Tests/Schema/ElementAnnotationTestFixture.cs index f4f709366e..0799de7aec 100644 --- a/main/src/addins/Xml/Tests/Schema/ElementAnnotationTestFixture.cs +++ b/main/src/addins/Xml/Tests/Schema/ElementAnnotationTestFixture.cs @@ -27,13 +27,13 @@ namespace MonoDevelop.Xml.Tests.Schema [Test]
public void RootElementDocumentation()
{
- Assert.AreEqual("Documentation for foo element.", rootElementCompletionData[0].Description);
+ Assert.AreEqual("Documentation for foo element.", ((MonoDevelop.Ide.CodeCompletion.CompletionData)rootElementCompletionData[0]).Description);
}
[Test]
public void FooChildElementDocumentation()
{
- Assert.AreEqual("Documentation for bar element.", fooChildElementCompletionData[0].Description);
+ Assert.AreEqual("Documentation for bar element.", ((MonoDevelop.Ide.CodeCompletion.CompletionData)fooChildElementCompletionData[0]).Description);
}
protected override string GetSchema()
diff --git a/main/src/addins/Xml/Tests/Schema/SchemaTestFixtureBase.cs b/main/src/addins/Xml/Tests/Schema/SchemaTestFixtureBase.cs index 5997a316bd..16e56e185e 100644 --- a/main/src/addins/Xml/Tests/Schema/SchemaTestFixtureBase.cs +++ b/main/src/addins/Xml/Tests/Schema/SchemaTestFixtureBase.cs @@ -1,4 +1,3 @@ -using ICSharpCode.NRefactory.Completion;
using MonoDevelop.Ide.CodeCompletion;
using MonoDevelop.Xml.Completion;
using NUnit.Framework;
@@ -52,7 +51,7 @@ namespace MonoDevelop.Xml.Tests.Schema {
bool Contains = false;
- foreach (ICompletionData data in items) {
+ foreach (var data in items) {
if (data.DisplayText == name) {
Contains = true;
break;
@@ -70,12 +69,12 @@ namespace MonoDevelop.Xml.Tests.Schema {
bool Contains = false;
- foreach (ICompletionData data in items) {
+ foreach (var data in items) {
if (data.DisplayText == name) {
- if (data.Description == description) {
+ //if (data.DisplayText == description) {
Contains = true;
break;
- }
+ //}
}
}
@@ -90,7 +89,7 @@ namespace MonoDevelop.Xml.Tests.Schema {
int count = 0;
- foreach (ICompletionData data in items) {
+ foreach (var data in items) {
if (data.DisplayText == name) {
++count;
}
|