public void AcceptVisitor(ITestVisitor visitor) { visitor.StartSection(this); _parts.ForEach(x => x.AcceptVisitor(visitor)); visitor.EndSection(this); }
/// <summary> /// Constructor /// </summary> /// <param name="parent">The parent TestFrameworkDOTDeserialiser instance</param> public BoostTestFrameworkVisitor(TestFrameworkDOTDeserialiser parent, ITestVisitor visitor) { this.Parent = parent; this.Visitor = visitor; this.Framework = null; this.Context = null; }
public override void AcceptVisitor(ITestVisitor visitor) { Debug.WriteLine(_debugMessage); }
public virtual void AcceptVisitor(ITestVisitor visitor) { Console.WriteLine(_message); }
public void AcceptVisitor(ITestVisitor visitor) { throw new NotImplementedException(); }
public void AcceptVisitor(ITestVisitor visitor) { _parts.ForEach(p => p.AcceptVisitor(visitor)); }
/// <summary> /// Visit this object for the purposes of rendering it to an output /// </summary> public void Visit(ITestVisitor visitor) { visitor.Visit(this); }
/// <summary> /// Parses the stream containing a Boost Test DOT representation of a Test Framework. Notifies the /// provided visitor (during parsing) of any identified test units. /// </summary> /// <param name="stream">The stream consisting of a DOT representation</param> /// <param name="visitor">The visitor which will be notified during parsing</param> /// <returns>The deserialised Test Framework</returns> /// <remarks> /// The visitor will not necessarily be notified in a top-down fashion. To ensure top-down /// visitation, wait for the result and visit the master test suite. /// </remarks> public TestFramework Deserialise(Stream stream, ITestVisitor visitor) { BoostTestFrameworkVisitor dotVisitor = new BoostTestFrameworkVisitor(this, visitor); return(DOT.Parse(stream, dotVisitor)); }
public void AcceptVisitor(ITestVisitor visitor) { visitor.WriteComment(this); }
public void AcceptVisitor(ITestVisitor visitor) { visitor.RunStep(this); }
public abstract void Apply(ITestVisitor visitor);
public void AcceptVisitor(ITestVisitor visitor) { visitor.WriteTags(this); }
public void AcceptVisitor(ITestVisitor visitor) { _parts.Each(x => x.AcceptVisitor(visitor)); }
public override void Apply(ITestVisitor visitor) { Utility.Code.Require(visitor, "visitor"); visitor.Visit(this); }