AVM.DDP.MetaAvmProject.SaveTestBench C# (CSharp) Method

SaveTestBench() public method

public SaveTestBench ( ISIS.GME.Dsml.CyPhyML.Interfaces testBenchType ) : bool
testBenchType ISIS.GME.Dsml.CyPhyML.Interfaces
return bool
        public bool SaveTestBench(CyPhy.TestBenchType testBenchType)
        {
            string testBenchFileFullPath = this.UpdateTestBenchJson(testBenchType.Impl as MgaFCO);

            string testBenchFile = Path.Combine(".", Path.GetFileName(Path.GetDirectoryName(testBenchFileFullPath)), Path.GetFileName(testBenchFileFullPath)).Replace('\\', '/');

            if (this.Project.TestBenches.Contains(testBenchFile) == false)
            {
                this.Project.TestBenches.Add(testBenchFile);
            }

            return true;
        }