public void Method_Name() { // arrange var sut = new TAPParser(); // act sut.ParseLine("1..10"); // assert }
public void Run(ScriptPath[] srcs) { int maxtasks = TAPApp.MaxTasks; TAPApp.VLog(3, "Max. {0} {1}.", maxtasks, maxtasks == 1?"task":"parallel tasks"); int k = 0; bool single = srcs.Length == 1; do { bool waiting = k != srcs.Length; int running = CountRunningTasks(); if (!waiting && running == 0) { TAPParser.EndTotal(); } ReapHead(); if (waiting) { running = CountRunningTasks(); while (running < maxtasks) { if (k != srcs.Length) { AddTask(srcs[k], single); ++k; ++running; } else { break; } } } if (Tasks.Count == 0) { break; } TaskDone.WaitOne(); } while(true); TAPApp.DLog(3, "TaskMgr done."); }
internal void ShowTotals() { TAPParser.ShowTotals(TAPApp.Paths); }