Example #1
0
 public void CreateSelection()
 {
     selection = new TestSelection();
     selection.Add(MakeTestNode("1", "Tom", "Passed"));
     selection.Add(MakeTestNode("2", "Dick", "Failed"));
     selection.Add(MakeTestNode("3", "Harry", "Passed"));
 }
Example #2
0
 private void Accumulate(TestSelection selection, TestNode testNode, TestNodePredicate predicate)
 {
     if (predicate(testNode))
     {
         selection.Add(testNode);
     }
     else if (testNode.IsSuite)
     {
         foreach (TestNode child in testNode.Children)
         {
             Accumulate(selection, child, predicate);
         }
     }
 }