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/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs')
-rw-r--r--main/tests/UnitTests/MonoDevelop.CSharpBinding/CodeCompletionBugTests.cs32
1 files changed, 32 insertions, 0 deletions
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.");
+ }
+
+
}
}