Ejemplo n.º 1
0
 public void CreateType()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Utilities.Reflection.Emit.TypeBuilder TypeObject = TestObject.CreateType("TestClass");
     Assert.NotNull(TypeObject);
     TestObject.Create();
 }
Ejemplo n.º 2
0
 public void CreateEnum()
 {
     Utilities.Reflection.Emit.Assembly    TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Utilities.Reflection.Emit.EnumBuilder EnumObject = TestObject.CreateEnum("TestEnum");
     Assert.NotNull(EnumObject);
     Assert.DoesNotThrow(() => TestObject.Create());
 }
Ejemplo n.º 3
0
 public void CreateEnum()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Utilities.Reflection.Emit.EnumBuilder EnumObject = TestObject.CreateEnum("TestEnum");
     Assert.NotNull(EnumObject);
     TestObject.Create();
 }
Ejemplo n.º 4
0
 public void CreateType()
 {
     Utilities.Reflection.Emit.Assembly    TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Utilities.Reflection.Emit.TypeBuilder TypeObject = TestObject.CreateType("TestClass");
     Assert.NotNull(TypeObject);
     Assert.DoesNotThrow(() => TestObject.Create());
 }
Ejemplo n.º 5
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly Assembly = new Utilities.Reflection.Emit.Assembly("TestAssembly");
     Utilities.Reflection.Emit.TypeBuilder TestType = Assembly.CreateType("TestType");
     Assert.NotNull(TestType);
     Assert.DoesNotThrow<Exception>(() => Assembly.Create());
     Assert.NotNull(Activator.CreateInstance(TestType.DefinedType));
 }
Ejemplo n.º 6
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly    Assembly = new Utilities.Reflection.Emit.Assembly("TestAssembly");
     Utilities.Reflection.Emit.TypeBuilder TestType = Assembly.CreateType("TestType");
     Assert.NotNull(TestType);
     Assert.DoesNotThrow(() => Assembly.Create());
     Assert.NotNull(Activator.CreateInstance(TestType.DefinedType));
 }
Ejemplo n.º 7
0
 public void AddLiteral()
 {
     Utilities.Reflection.Emit.Assembly    Assembly = new Utilities.Reflection.Emit.Assembly("TestAssembly");
     Utilities.Reflection.Emit.EnumBuilder Enum     = Assembly.CreateEnum("TestEnum");
     Enum.AddLiteral("TestLiteral1", 1);
     Enum.AddLiteral("TestLiteral2", 2);
     Assembly.Create();
     Assert.NotNull(Activator.CreateInstance(Enum.DefinedType));
 }
Ejemplo n.º 8
0
 public void AddLiteral()
 {
     Utilities.Reflection.Emit.Assembly Assembly = new Utilities.Reflection.Emit.Assembly("TestAssembly");
     Utilities.Reflection.Emit.EnumBuilder Enum = Assembly.CreateEnum("TestEnum");
     Enum.AddLiteral("TestLiteral1", 1);
     Enum.AddLiteral("TestLiteral2", 2);
     Assembly.Create();
     Assert.NotNull(Activator.CreateInstance(Enum.DefinedType));
 }
Ejemplo n.º 9
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     TestObject.Create();
 }
Ejemplo n.º 10
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Assert.DoesNotThrow<Exception>(() => TestObject.Create());
 }
Ejemplo n.º 11
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Assert.DoesNotThrow(() => TestObject.Create());
 }
Ejemplo n.º 12
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     TestObject.Create();
 }