branch: externals/csharp-mode
commit 8a9ab5ab89134406cd893ab078ade63b56c4a06e
Author: Jostein Kjønigsen <[email protected]>
Commit: Jostein Kjønigsen <[email protected]>
imenu: Add test-cases for generic methods.
These tests currently fail.
This commit illustrates https://github.com/josteink/csharp-mode/issues/83.
---
csharp-mode-tests.el | 4 +++-
test-files/imenu-method-test.cs | 11 +++++++++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index ea98ee7..cee478c 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -232,7 +232,9 @@
"(method) OpenWebServiceAsync("
"(method) ToString("
"(method) AbstractMethod("
- "(method) UnsafeCopy(")
+ "(method) UnsafeCopy("
+ "(method) GenericMethod1<T>"
+ "(method) GenericMethod2<T1,T2>")
(def-imenutest imenu-parsing-supports-delegates
"./test-files/imenu-delegate-test.cs"
diff --git a/test-files/imenu-method-test.cs b/test-files/imenu-method-test.cs
index 9fc9504..9119149 100644
--- a/test-files/imenu-method-test.cs
+++ b/test-files/imenu-method-test.cs
@@ -24,10 +24,21 @@ public class MethodTest
}
+ public T GenericMethod1<T>(T instance, string item)
+ {
+
+ }
+
+ public T1 GenericMethod2<T1,T2>(T1 instance, T2 item)
+ {
+
+ }
+
public abstract string AbstractMethod();
public unsafe static void UnsafeCopy(byte[] src, byte[] dst, int count)
{
}
+
}