/// <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)); }
/// <summary> /// Parses the stream containing a Boost Test DOT representation of a Test Framework /// </summary> /// <param name="stream">The text reader consisting of a DOT representation</param> /// <returns>The deserialised Test Framework</returns> public TestFramework Deserialise(TextReader stream) { BoostTestFrameworkVisitor dotVisitor = new BoostTestFrameworkVisitor(this); return(DOT.Parse(stream, dotVisitor)); }