internal void InsertAction(AddRowsTest.InsertPosition insertPosition, int count) { var selValues = new SelectedValues(); selValues.Values = SelectedValue.CreateNew(count); switch (insertPosition) { case AddRowsTest.InsertPosition.First: ActionValues.Insert(0, selValues); break; case AddRowsTest.InsertPosition.Second: ActionValues.Insert(1, selValues); break; case AddRowsTest.InsertPosition.Last: ActionValues.Insert(ActionValues.Count - 1, selValues); break; case AddRowsTest.InsertPosition.AfterLast: ActionValues.Add(selValues); break; default: throw new ArgumentOutOfRangeException(nameof(insertPosition), insertPosition, null); } }
internal void AppendAction(int count) { var selValues = new SelectedValues(); selValues.Values = SelectedValue.CreateNew(count); ActionValues.Add(selValues); }
internal void AppendTestCase(TestCase newTestCase, TestCasesRoot testCasesRoot) { TestCaseContainer cont = new TestCaseContainer(); cont.Name = newTestCase.Name; var selValues = new SelectedValues(); selValues.Values = SelectedValue.CreateNew(testCasesRoot.Conditions.Count); cont.TestCaseConditionValues = selValues; selValues = new SelectedValues(); selValues.Values = SelectedValue.CreateNew(testCasesRoot.Actions.Count); cont.TestCaseActionValues = selValues; TestCaseContainers.Add(cont); }
internal void CollectValues(TestCasesRoot testCasesRoot) { ActionValues = new List <SelectedValues>(); ConditionValues = new List <SelectedValues>(); foreach (ConditionObject condition in testCasesRoot.Conditions) { var selValues = new SelectedValues(); selValues.Collect(condition); ConditionValues.Add(selValues); } foreach (ActionObject action in testCasesRoot.Actions) { var selValues = new SelectedValues(); selValues.Collect(action); ActionValues.Add(selValues); } }
internal void CollectValues(TestCasesRoot testCasesRoot) { TestCaseContainers = new List <TestCaseContainer>(); foreach (TestCase testCase in testCasesRoot.TestCases) { TestCaseContainer container = new TestCaseContainer(); container.Name = testCase.Name; var selValues = new SelectedValues(); selValues.Collect(testCase.Conditions); container.TestCaseConditionValues = selValues; selValues = new SelectedValues(); selValues.Collect(testCase.Actions); container.TestCaseActionValues = selValues; TestCaseContainers.Add(container); } }