diff options
author | Jb Evain <jbevain@gmail.com> | 2011-11-02 16:33:46 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2011-11-02 16:33:46 +0400 |
commit | e9f7b3bf39567cb7268e3e7490ab0c253b990606 (patch) | |
tree | 6466835c6fc84c1399470d65a0085df4aab0636d /Test | |
parent | 5490b9bc05bd2efa8ed0e18f1c2da10e8e75f56b (diff) |
Fix MethodReturnType.Parameter.Method
Diffstat (limited to 'Test')
-rw-r--r-- | Test/Mono.Cecil.Tests/MethodTests.cs | 8 |
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); + } } } |