2 // SignatureHelperTest.cs
4 // Author: Atsushi Enomoto <atsushi@ximian.com>
6 // Copyright (C) 2007 Novell, Inc.
9 using System
.Reflection
;
10 using System
.Reflection
.Emit
;
11 using NUnit
.Framework
;
13 namespace MonoTests
.System
.Reflection
.Emit
16 public class SignatureHelperTest
19 public void GetFieldSigHelperNullModule ()
21 SignatureHelper
.GetFieldSigHelper (null);
25 public void GetLocalVarSigHelperNullModule ()
27 SignatureHelper
.GetLocalVarSigHelper (null);
31 public void GetMethodSigHelperNullModule ()
33 SignatureHelper
.GetMethodSigHelper (null, CallingConventions
.Standard
, typeof (int));
37 [ExpectedException (typeof (ArgumentException
))]
38 public void GetFieldSigHelperNormalModule ()
40 SignatureHelper
.GetFieldSigHelper (typeof (int).Module
);
44 [ExpectedException (typeof (ArgumentException
))]
45 public void GetLocalVarSigHelperNormalModule ()
47 SignatureHelper
.GetLocalVarSigHelper (typeof (int).Module
);
51 [ExpectedException (typeof (ArgumentException
))]
52 public void GetMethodSigHelperNormalModule ()
54 SignatureHelper
.GetMethodSigHelper (typeof (int).Module
, CallingConventions
.Standard
, typeof (int));