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();
 }
 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());
 }
 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();
 }
 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());
 }
 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));
 }
Esempio 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));
 }
Esempio 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));
 }
 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));
 }
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     TestObject.Create();
 }
Esempio n. 10
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Assert.DoesNotThrow<Exception>(() => TestObject.Create());
 }
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     Assert.DoesNotThrow(() => TestObject.Create());
 }
Esempio n. 12
0
 public void Create()
 {
     Utilities.Reflection.Emit.Assembly TestObject = new Utilities.Reflection.Emit.Assembly("TestingThis");
     TestObject.Create();
 }