public void OnRunEnd()
        {
            var line = String.Format("Contexts: {0}, Specifications: {1}, Time: {2:s\\.ff} seconds",
                                     _contextCount,
                                     _specificationCount,
                                     FormattableTimeSpan(_timer.GetRunTime()));

            if (_failedSpecificationCount > 0 || _unimplementedSpecificationCount > 0)
            {
                line += String.Format("\n  {0} passed, {1} failed", _passedSpecificationCount, _failedSpecificationCount);
                if (_unimplementedSpecificationCount > 0)
                {
                    line += String.Format(", {0} not implemented", _unimplementedSpecificationCount);
                }
                if (_ignoredSpecificationCount > 0)
                {
                    line += String.Format(", {0} ignored", _ignoredSpecificationCount);
                }
            }

            if (_failureOccurred)
            {
                line += "\n\nGeneric failure occurred, no idea what this is";
            }

            _console.WriteLine(line);
        }
        public void OnRunEnd()
        {
            _output.RunEnd();

            _summary.WriteSummary();

            var line = String.Format("Contexts: {0}, Specifications: {1}, Time: {2:s\\.ff} seconds",
                                     _contextCount,
                                     _specificationCount,
                                     FormattableTimeSpan(_timer.GetRunTime()));

            if (_failedSpecificationCount > 0 || _unimplementedSpecificationCount > 0)
            {
                line += String.Format(Environment.NewLine + "  {0} passed, {1} failed", _passedSpecificationCount, _failedSpecificationCount);
                if (_unimplementedSpecificationCount > 0)
                {
                    line += String.Format(", {0} not implemented", _unimplementedSpecificationCount);
                }
                if (_ignoredSpecificationCount > 0)
                {
                    line += String.Format(", {0} ignored", _ignoredSpecificationCount);
                }
            }

            _console.WriteLine("");
            _console.WriteLine(line);
        }
 void RenderRun(XmlWriter reportBuilder)
 {
     reportBuilder.WriteStartElement("run");
     reportBuilder.WriteAttributeString("time", _timer.GetRunTime().ToString(CultureInfo.InvariantCulture));
     reportBuilder.WriteEndElement();
 }