GenerateAssembly() public method

public GenerateAssembly ( ) : string
return string
        public static string GenerateTestBench(TestBench test, string workingDirectory, string templateFile)
        {
            string assemblyFile = PathHelper.Combine(workingDirectory, "test.s");
            Logger.Instance.WriteVerbose("Generating Assembly file");
            File.WriteAllText(assemblyFile, test.GenerateAssembly());

            MemoryStream code = GenerateMachineCode(workingDirectory, assemblyFile);

            return TestBenchTemplate(code, templateFile);
        }
示例#2
0
        public static string GenerateTestBench(TestBench test, string workingDirectory, string templateFile)
        {
            string assemblyFile = PathHelper.Combine(workingDirectory, "test.s");

            Logger.Instance.WriteVerbose("Generating Assembly file");
            File.WriteAllText(assemblyFile, test.GenerateAssembly());

            MemoryStream code = GenerateMachineCode(workingDirectory, assemblyFile);

            return(TestBenchTemplate(code, templateFile));
        }