예제 #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());
        }