protected override void ExecuteExample()
 {
     IVisitor visitor = new Visitor();
     var fixture = new TestFixture("Test Fixture 1", new List<Test> { new Test("Test 1"), new Test("Test 2"), new Test("Test 3") });
     fixture.AcceptVisitor(visitor);
 }
Esempio n. 2
0
 public void Process(TestFixture fixture)
 {
     Console.WriteLine("Processing {0}", fixture.Name);
     fixture.ChildLeaves.ForEach(leaf => leaf.AcceptVisitor(this));
 }