diff --git a/TestBenchFramework/BenchControl/Sequences/MainSeq.cs b/TestBenchFramework/BenchControl/Sequences/MainSeq.cs index 601c1fd7c..e8e4e7486 100644 --- a/TestBenchFramework/BenchControl/Sequences/MainSeq.cs +++ b/TestBenchFramework/BenchControl/Sequences/MainSeq.cs @@ -1,5 +1,5 @@ /// -/// Copyright (c) 2013-2015 Sensus Metering Systems +/// Copyright (c) 2013-2016 Sensus Metering Systems /// using System; using System.Collections.Generic; @@ -505,7 +505,7 @@ namespace TBF.BenchControl.Sequences int outerLoopStartIx = currentTestIx; bool outerLoopMode = false; int outerLoopCounter = 0; - do + while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount) { Test test = StateMachine.Tests[currentTestIx]; @@ -595,7 +595,6 @@ namespace TBF.BenchControl.Sequences currentTestIx++; } - while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount); } else if (selection == Selection.RestOfCycle) { @@ -648,7 +647,7 @@ namespace TBF.BenchControl.Sequences int outerLoopStartIx = currentTestIx; bool outerLoopMode = false; int outerLoopCounter = 0; - do + while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount) { Test test = StateMachine.Tests[currentTestIx]; @@ -738,7 +737,6 @@ namespace TBF.BenchControl.Sequences currentTestIx++; } - while (currentTestIx < StateMachine.Tests.Count - simultWithEvacuationCount); } else /// if (selection == Selection.Test) {