Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

81 lines
1.5 KiB
C#

// ****************************************************************
// This is free software licensed under the NUnit license. You
// may obtain a copy of the license as well as information regarding
// copyright ownership at http://nunit.org/?p=license&r=2.4.
// ****************************************************************
namespace NUnit.Util
{
using System;
using NUnit.Core;
/// <summary>
/// Summary description for ResultSummarizer.
/// </summary>
public class ResultSummarizer
{
private SummaryVisitor visitor = new SummaryVisitor();
public ResultSummarizer(TestResult result)
{
result.Accept(visitor);
}
public ResultSummarizer(TestResult[] results)
{
foreach( TestResult result in results )
result.Accept( visitor );
}
public string Name
{
get { return visitor.Name; }
}
public bool Success
{
get { return visitor.Success; }
}
public int ResultCount
{
get { return visitor.ResultCount; }
}
// public int Errors
// {
// get { return visitor.Errors; }
// }
public int FailureCount
{
get { return visitor.FailureCount; }
}
public int SkipCount
{
get { return visitor.SkipCount; }
}
public int IgnoreCount
{
get { return visitor.IgnoreCount; }
}
public double Time
{
get { return visitor.Time; }
}
public int TestsNotRun
{
get { return visitor.TestsNotRun; }
}
public int SuitesNotRun
{
get { return visitor.SuitesNotRun; }
}
}
}