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); }
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)); }