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:
authorMike Krüger <mkrueger@novell.com>2009-11-06 12:36:00 +0300
committerMike Krüger <mkrueger@novell.com>2009-11-06 12:36:00 +0300
commiteacbe56363bd90e23687d159ff76fd34f7c1ebe3 (patch)
tree7c46017f1dfe376cdd20c937c00566979a442780 /main/tests
parent22b5447ae6512078c14bd1422b298f420f498c03 (diff)
* MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs: Added unit
test for 'Bug 553101 – Enum completion does not use type aliases'. svn path=/trunk/monodevelop/; revision=145578
Diffstat (limited to 'main/tests')
-rw-r--r--main/tests/UnitTests/ChangeLog6
-rw-r--r--main/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs32
2 files changed, 38 insertions, 0 deletions
diff --git a/main/tests/UnitTests/ChangeLog b/main/tests/UnitTests/ChangeLog
index c744b89ead..8a6ab70134 100644
--- a/main/tests/UnitTests/ChangeLog
+++ b/main/tests/UnitTests/ChangeLog
@@ -1,3 +1,9 @@
+2009-11-06 Mike Krüger <mkrueger@novell.com>
+
+ * MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs: Added
+ unit test for 'Bug 553101 – Enum completion does not use
+ type aliases'.
+
2009-10-28 Mike Krüger <mkrueger@novell.com>
* MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs: Added
diff --git a/main/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs b/main/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs
index 93be3ae75c..8c75d6dfdd 100644
--- a/main/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs
+++ b/main/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs
@@ -2018,5 +2018,37 @@ class TestClass
Assert.IsNotNull (provider, "provider not found.");
Assert.IsNull (provider.Find ("MyCountMet2hod"), "method 'MyCountMethod' found, but shouldn't.");
}
+
+
+ /// <summary>
+ /// Bug 553101 – Enum completion does not use type aliases
+ /// </summary>
+ [Test()]
+ public void TestBug553101 ()
+ {
+ CompletionDataList provider = CreateProvider (
+@"
+namespace Some.Type
+{
+ public enum Name { Foo, Bar }
+}
+
+namespace Test
+{
+ using STN = Some.Type.Name;
+
+ public class Main
+ {
+ public void TestMe ()
+ {
+ $STN foo = $
+ }
+ }
+}
+");
+ Assert.IsNotNull (provider, "provider not found.");
+ }
+
+
}
}