/// <summary>
        /// Returns a deep copy of the current tree.
        /// </summary>
        public TestRunTree Copy(bool?passed = null)
        {
            var specs = new FactData[_specs.Count];

            _specs.CopyTo(specs);

            return(new TestRunTree(StartTime, specs.ToList(), EndTime, passed ?? Passed));
        }
Ejemplo n.º 2
0
 public SpecRunCoordinator(string className, string methodName, IList <NodeTest> nodes)
 {
     Nodes       = nodes;
     MethodName  = methodName;
     ClassName   = className;
     FactData    = new FactData(string.Format("{0}.{1}", className, methodName));
     _nodeActors = new Dictionary <int, IActorRef>();
     SetReceive();
 }
 public void AddSpec(FactData spec)
 {
     _specs.Add(spec);
 }