Beispiel #1
0
 void OnChildSessionStarting(XUnitExecutionSession childSession, TestContext context)
 {
     // begin session if the first child session started
     if (++childSessionsStarted == 1)
     {
         Begin(context);
     }
 }
Beispiel #2
0
 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);
        }
Beispiel #5
0
 public void AddChildSession(XUnitExecutionSession childSession)
 {
     childSession.parentSession = this;
     childSessions.Add(childSession);
 }
Beispiel #6
0
 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;
		}