0
|
1 using System;
|
|
2 using System.Runtime.CompilerServices;
|
|
3 using NUnit.Framework;
|
|
4
|
|
5 using BLToolkit.Reflection;
|
|
6
|
|
7 // typeof(TargetType).FullName + "." + TypeBuilderConsts.AssemblyNameSuffix
|
|
8 //
|
|
9 /*[a]*/[assembly: InternalsVisibleTo("HowTo.TypeBuilder.InternalTypesTest.TestObject.TypeBuilder")]/*[/a]*/
|
|
10 /*[a]*/[assembly: InternalsVisibleTo("HowTo.TypeBuilder.InternalTypesTest.TestObject.TypeAccessor")]/*[/a]*/
|
|
11
|
|
12 namespace HowTo.TypeBuilder
|
|
13 {
|
|
14
|
|
15 [TestFixture]
|
|
16 public class InternalTypesTest
|
|
17 {
|
|
18 /*[a]*/internal/*[/a]*/ abstract class TestObject
|
|
19 {
|
|
20 public abstract string Value { get; set; }
|
|
21 }
|
|
22
|
|
23 [Test]
|
|
24 public void Test()
|
|
25 {
|
|
26 var o = TypeAccessor.CreateInstance<TestObject>();
|
|
27 Assert.IsNotNull(o);
|
|
28 }
|
|
29 }
|
|
30 } |