Esempio n. 1
0
        public UnifiedTest AppendChild(UnifiedTest Node)
        {
            Node.GetTest().EndedTime   = DateTime.Now;
            Node.GetTest().IsChildNode = true;
            Node.GetTest().TrackLastRunStatus();
            this.test.HasChildNodes = true;
            List <string> list = new List <string>();

            foreach (TestAttribute current in this.test.CategoryList)
            {
                if (!list.Contains(current.GetName()))
                {
                    list.Add(current.GetName());
                }
            }
            foreach (TestAttribute current in Node.GetTest().CategoryList)
            {
                if (!list.Contains(current.GetName()))
                {
                    this.test.CategoryList.Add(current);
                }
            }
            this.test.NodeList.Add(Node.GetTest());
            return(this);
        }
 public void EndTest(UnifiedTest Test)
 {
     Test.GetTest().HasEnded = true;
     this.reportInstance.AddTest(Test.GetTest());
 }