void OnChildSessionStarting(XUnitExecutionSession childSession, TestContext context) { // begin session if the first child session started if (++childSessionsStarted == 1) { Begin(context); } }
void OnChildSessionFinished(XUnitExecutionSession childSession) { result.Add(childSession.result); // end session if the last child session finished if (++childSessionsFinished == childSessions.Count) { End(); } }
public XUnitExecutionSession CreateExecutionSession (bool reportToMonitor) { session = new XUnitExecutionSession (this, reportToMonitor); foreach (var test in Tests) { var xunitTest = test as IExecutableTest; if (xunitTest != null) { var childSession = xunitTest.CreateExecutionSession (reportToMonitor); session.AddChildSession (childSession); } } return session; }
public XUnitExecutionSession CreateExecutionSession(bool reportToMonitor) { session = new XUnitExecutionSession(this, reportToMonitor); foreach (var test in Tests) { var xunitTest = test as IExecutableTest; if (xunitTest != null) { var childSession = xunitTest.CreateExecutionSession(reportToMonitor); session.AddChildSession(childSession); } } return(session); }
public void AddChildSession(XUnitExecutionSession childSession) { childSession.parentSession = this; childSessions.Add(childSession); }
public XUnitExecutionSession CreateExecutionSession(bool reportToMonitor) { session = new XUnitExecutionSession(this, reportToMonitor); return(session); }
void OnChildSessionFinished (XUnitExecutionSession childSession) { result.Add (childSession.result); // end session if the last child session finished if (++childSessionsFinished == childSessions.Count) End (); }
void OnChildSessionStarting (XUnitExecutionSession childSession, TestContext context) { // begin session if the first child session started if (++childSessionsStarted == 1) Begin (context); }
public void AddChildSession (XUnitExecutionSession childSession) { childSession.parentSession = this; childSessions.Add (childSession); }
public XUnitExecutionSession CreateExecutionSession (bool reportToMonitor) { session = new XUnitExecutionSession (this, reportToMonitor); return session; }