Exemplo n.º 1
0
        /// <summary>
        /// Called when a test result is received.
        /// </summary>
        internal void TestResultHandler(object sender, TestResultEventArgs e)
        {
            TestResult result = e.Result;

            var parsedName = TestCaseNameParser.Parse(result.TestCase.FullyQualifiedName);

            lock (this.resultsGuard)
            {
                this.results.Add(new TestResultInfo(
                                     result,
                                     parsedName.NamespaceName,
                                     parsedName.TypeName,
                                     parsedName.MethodName));
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Called when a test result is received.
        /// </summary>
        internal void TestResultHandler(object sender, TestResultEventArgs e)
        {
            TestResult result = e.Result;

            if (e.Result.Messages.Count > 0)
            {
                this.stdOut.AppendLine();
                this.stdOut.AppendLine(result.TestCase.FullyQualifiedName);
                this.stdOut.AppendLine(Indent(result.Messages));
            }

            var parsedName = TestCaseNameParser.Parse(result.TestCase.FullyQualifiedName);

            lock (this.resultsGuard)
            {
                this.results.Add(new TestResultInfo(
                                     result,
                                     parsedName.NamespaceName,
                                     parsedName.TypeName,
                                     parsedName.MethodName));
            }
        }