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

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2011-11-02 16:33:46 +0400
committerJb Evain <jbevain@gmail.com>2011-11-02 16:33:46 +0400
commite9f7b3bf39567cb7268e3e7490ab0c253b990606 (patch)
tree6466835c6fc84c1399470d65a0085df4aab0636d /Test
parent5490b9bc05bd2efa8ed0e18f1c2da10e8e75f56b (diff)
Fix MethodReturnType.Parameter.Method
Diffstat (limited to 'Test')
-rw-r--r--Test/Mono.Cecil.Tests/MethodTests.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/Mono.Cecil.Tests/MethodTests.cs b/Test/Mono.Cecil.Tests/MethodTests.cs
index c7d55f9..5d4d375 100644
--- a/Test/Mono.Cecil.Tests/MethodTests.cs
+++ b/Test/Mono.Cecil.Tests/MethodTests.cs
@@ -189,5 +189,13 @@ namespace Mono.Cecil.Tests {
Assert.AreEqual ("System.Collections.Generic.List`1<TBeta>", new_list_beta.DeclaringType.FullName);
Assert.AreEqual ("System.Collections.Generic.List`1<TCharlie>", new_list_charlie.DeclaringType.FullName);
}
+
+ [Test]
+ public void ReturnParameterMethod ()
+ {
+ var method = typeof (MethodTests).ToDefinition ().GetMethod ("ReturnParameterMethod");
+ Assert.IsNotNull (method);
+ Assert.AreEqual (method, method.MethodReturnType.Parameter.Method);
+ }
}
}