public void TestCtor() { FxPointers.AddResolveAsmEventHandlerToDomain(); var testtypeName = "AdventureWorks.Production.Product"; var testAsm = TestCgType.GetAdventureWorks2012(); Assert.IsNotNull(testAsm); var testResult = new NoFuture.Gen.CgTypeCsSrcCode(testAsm, testtypeName); }
public void TestCtor2() { FxPointers.AddResolveAsmEventHandlerToDomain(); var testtypeName = "AdventureWorks.Production.Product"; var testAsm = TestCgType.GetAdventureWorks2012(); var testFile = TestCgType.PutTestFileOnDisk("Production_Product.eg"); Assert.IsNotNull(testAsm); Assert.IsTrue(File.Exists(testFile)); var testResult = new NoFuture.Gen.CgTypeCsSrcCode(testAsm, testtypeName, testFile); Assert.IsNotNull(testResult.CgType); Assert.IsTrue(testResult.CgType.Properties.Any(p => p.GetMyStartEnclosure(null) != null)); }