예제 #1
0
        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;
            }
예제 #3
0
 public override void AcceptVisitor(ITestVisitor visitor)
 {
     Debug.WriteLine(_debugMessage);
 }
예제 #4
0
 public virtual void AcceptVisitor(ITestVisitor visitor)
 {
     Console.WriteLine(_message);
 }
예제 #5
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     _parts.ForEach(p => p.AcceptVisitor(visitor));
 }
예제 #7
0
 public virtual void AcceptVisitor(ITestVisitor visitor)
 {
     Console.WriteLine(_message);
 }
예제 #8
0
 /// <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));
        }
예제 #10
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     visitor.WriteComment(this);
 }
예제 #11
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     visitor.RunStep(this);
 }
예제 #12
0
 public abstract void Apply(ITestVisitor visitor);
예제 #13
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     visitor.WriteTags(this);
 }
예제 #14
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     visitor.WriteTags(this);
 }
예제 #15
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     _parts.Each(x => x.AcceptVisitor(visitor));
 }
예제 #16
0
 /// <summary>
 /// Visit this object for the purposes of rendering it to an output
 /// </summary>
 public void Visit(ITestVisitor visitor)
 {
   visitor.Visit(this);
 }
예제 #17
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     visitor.WriteComment(this);
 }
        public override void Apply(ITestVisitor visitor)
        {
            Utility.Code.Require(visitor, "visitor");

            visitor.Visit(this);
        }
        public override void Apply(ITestVisitor visitor)
        {
            Utility.Code.Require(visitor, "visitor");

            visitor.Visit(this);
        }
예제 #20
0
 public void AcceptVisitor(ITestVisitor visitor)
 {
     throw new NotImplementedException();
 }
 public abstract void Apply(ITestVisitor visitor);
예제 #22
0
 public override void AcceptVisitor(ITestVisitor visitor)
 {
     Debug.WriteLine(_debugMessage);
 }
예제 #23
0
파일: Step.cs 프로젝트: larsw/storyteller
 public void AcceptVisitor(ITestVisitor visitor)
 {
     visitor.RunStep(this);
 }