Exemple #1
0
        private void OnTestFinished(TestResult result)
        {
            var resultNode = result.ToXml(false);

            if (_testOutput.Length > 0)
            {
                var outputNode = resultNode.AddElement("output");
                outputNode.InnerText = _testOutput.ToString();
                _testOutput.Remove(0, _testOutput.Length);
            }

            _listener.OnTestEvent(resultNode.OuterXml);
        }