コード例 #1
0
 public void Init()
 {
     //put all the binary files in test dir
     TestCgType.GetAdventureWorks2012();
     NfConfig.CustomTools.Dia2Dump = TestCgType.PutTestFileOnDisk("Dia2Dump.exe");
     NoFuture.Shared.Cfg.NfConfig.TempDirectories.Debug = TestCgType.GetTestFileDirectory();
 }
コード例 #2
0
        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));
        }