/// <summary> /// Adds a child result to this result, setting this result's /// ResultState to Failure if the child result failed. /// </summary> /// <param name="result">The result to be added</param> public virtual void AddResult(ITestResult result) { #if PARALLEL _children.Enqueue(result); RwLock.EnterWriteLock(); try { MergeChildResult(result); } finally { RwLock.ExitWriteLock(); } #else _children.Add(result); MergeChildResult(result); #endif }
public void AddToQueue(MyObject newObject) { queue.Add(newObject); }