2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / corlib / Test / System.Reflection.Emit / SignatureHelperTest.cs
bloba513f6199800c9f00c1aa7d3c8ee7c353583eb44
1 //
2 // SignatureHelperTest.cs
3 //
4 // Author: Atsushi Enomoto <atsushi@ximian.com>
5 //
6 // Copyright (C) 2007 Novell, Inc.
7 //
8 using System;
9 using System.Reflection;
10 using System.Reflection.Emit;
11 using NUnit.Framework;
13 namespace MonoTests.System.Reflection.Emit
15 [TestFixture]
16 public class SignatureHelperTest
18 [Test]
19 public void GetFieldSigHelperNullModule ()
21 SignatureHelper.GetFieldSigHelper (null);
24 [Test]
25 public void GetLocalVarSigHelperNullModule ()
27 SignatureHelper.GetLocalVarSigHelper (null);
30 [Test]
31 public void GetMethodSigHelperNullModule ()
33 SignatureHelper.GetMethodSigHelper (null, CallingConventions.Standard, typeof (int));
36 [Test]
37 [ExpectedException (typeof (ArgumentException))]
38 public void GetFieldSigHelperNormalModule ()
40 SignatureHelper.GetFieldSigHelper (typeof (int).Module);
43 [Test]
44 [ExpectedException (typeof (ArgumentException))]
45 public void GetLocalVarSigHelperNormalModule ()
47 SignatureHelper.GetLocalVarSigHelper (typeof (int).Module);
50 [Test]
51 [ExpectedException (typeof (ArgumentException))]
52 public void GetMethodSigHelperNormalModule ()
54 SignatureHelper.GetMethodSigHelper (typeof (int).Module, CallingConventions.Standard, typeof (int));