コード例 #1
0
 void OnChildSessionStarting(XUnitExecutionSession childSession, TestContext context)
 {
     // begin session if the first child session started
     if (++childSessionsStarted == 1)
     {
         Begin(context);
     }
 }
コード例 #2
0
 void OnChildSessionFinished(XUnitExecutionSession childSession)
 {
     result.Add(childSession.result);
     // end session if the last child session finished
     if (++childSessionsFinished == childSessions.Count)
     {
         End();
     }
 }
コード例 #3
0
		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;
		}
コード例 #4
0
        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);
        }
コード例 #5
0
 public void AddChildSession(XUnitExecutionSession childSession)
 {
     childSession.parentSession = this;
     childSessions.Add(childSession);
 }
コード例 #6
0
 public XUnitExecutionSession CreateExecutionSession(bool reportToMonitor)
 {
     session = new XUnitExecutionSession(this, reportToMonitor);
     return(session);
 }
コード例 #7
0
		void OnChildSessionFinished (XUnitExecutionSession childSession)
		{
			result.Add (childSession.result);
			// end session if the last child session finished
			if (++childSessionsFinished == childSessions.Count)
				End ();
		}
コード例 #8
0
		void OnChildSessionStarting (XUnitExecutionSession childSession, TestContext context)
		{
			// begin session if the first child session started
			if (++childSessionsStarted == 1)
				Begin (context);
		}
コード例 #9
0
		public void AddChildSession (XUnitExecutionSession childSession)
		{
			childSession.parentSession = this;
			childSessions.Add (childSession);
		}
コード例 #10
0
		public XUnitExecutionSession CreateExecutionSession (bool reportToMonitor)
		{
			session = new XUnitExecutionSession (this, reportToMonitor);
			return session;
		}