示例#1
0
        protected void SaveTCL(TCLFile tcl)
        {
            if (tcl == null)
            {
                throw new NullReferenceException(nameof(tcl));
            }

            File.WriteAllText(Path.Combine(TestOutputFolder, $"script.tcl"), tcl.ToString());
        }
示例#2
0
        public void SaveTCL(TCLFile tcl, string scriptName = "script.tcl")
        {
            if (tcl == null)
            {
                throw new NullReferenceException(nameof(tcl));
            }

            File.WriteAllText(Path.Combine(_vivadoProjectLocation, scriptName), tcl.ToString());
        }