protected virtual void Terminate() { TestList.ForEach(x => { if (!x.GetTest().HasEnded) { var ex = new ExtentTestInterruptedException(InternalWarning); x.GetTest().InternalWarning = InternalWarning; x.Log(LogStatus.Fail, ex); AddTest(x.GetTest()); } }); Flush(); _reporterList.ForEach(x => { x.Stop(); }); _reporterList.Clear(); _terminated = true; }
protected virtual void Terminate() { TestList.ForEach(x => { if (!x.GetTest().HasEnded) { var ex = new ExtentTestInterruptedException(InternalWarning); x.GetTest().InternalWarning = InternalWarning; x.Log(LogStatus.Fail, ex); AddTest(x.GetTest()); } }); Flush(); _reporterList.ForEach(x => { x.Stop(); }); _reporterList.Clear(); _terminated = true; }