Search Results for

    Show / Hide Table of Contents

    Class ResultSummary

    Helper class used to summarize the result of a test run

    Inheritance
    object
    ResultSummary
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnitLite
    Assembly: nunitlite.dll
    Syntax
    public class ResultSummary

    Constructors

    View Source

    ResultSummary(ITestResult)

    Initializes a new instance of the ResultSummary class.

    Declaration
    public ResultSummary(ITestResult result)
    Parameters
    Type Name Description
    ITestResult result

    The result.

    Properties

    View Source

    Duration

    Gets or sets the elapsed time for running the test in seconds

    Declaration
    public double Duration { get; }
    Property Value
    Type Description
    double
    View Source

    EndTime

    Gets or sets the time the test finished running.

    Declaration
    public DateTime EndTime { get; }
    Property Value
    Type Description
    DateTime
    View Source

    ErrorCount

    Gets the error count

    Declaration
    public int ErrorCount { get; }
    Property Value
    Type Description
    int
    View Source

    ExplicitCount

    Gets the explicit count

    Declaration
    public int ExplicitCount { get; }
    Property Value
    Type Description
    int
    View Source

    FailedCount

    Returns the number of failed test cases (including errors and invalid tests)

    Declaration
    public int FailedCount { get; }
    Property Value
    Type Description
    int
    View Source

    FailureCount

    Gets count of failed tests, excluding errors and invalid tests

    Declaration
    public int FailureCount { get; }
    Property Value
    Type Description
    int
    View Source

    IgnoreCount

    Gets the ignore count

    Declaration
    public int IgnoreCount { get; }
    Property Value
    Type Description
    int
    View Source

    InconclusiveCount

    Gets the count of inconclusive tests

    Declaration
    public int InconclusiveCount { get; }
    Property Value
    Type Description
    int
    View Source

    InvalidCount

    Returns the number of test cases that were not runnable due to errors in the signature of the class or method. Such tests are also counted as Errors.

    Declaration
    public int InvalidCount { get; }
    Property Value
    Type Description
    int
    View Source

    InvalidTestFixtures

    Invalid Test Fixtures

    Declaration
    public int InvalidTestFixtures { get; }
    Property Value
    Type Description
    int
    View Source

    NotRunCount

    Gets the number of tests not run for any reason.

    Declaration
    public int NotRunCount { get; }
    Property Value
    Type Description
    int
    View Source

    PassCount

    Gets the count of passed tests

    Declaration
    public int PassCount { get; }
    Property Value
    Type Description
    int
    View Source

    ResultState

    Gets the ResultState of the test result, which indicates the success or failure of the test.

    Declaration
    public ResultState ResultState { get; }
    Property Value
    Type Description
    ResultState
    View Source

    RunCount

    Returns the number of test cases actually run.

    Declaration
    public int RunCount { get; }
    Property Value
    Type Description
    int
    View Source

    SkipCount

    Gets the count of skipped tests, excluding ignored tests

    Declaration
    public int SkipCount { get; }
    Property Value
    Type Description
    int
    View Source

    StartTime

    Gets or sets the time the test started running.

    Declaration
    public DateTime StartTime { get; }
    Property Value
    Type Description
    DateTime
    View Source

    TestCount

    Gets the number of test cases for which results have been summarized. Any tests excluded by use of Category or Explicit attributes are not counted.

    Declaration
    public int TestCount { get; }
    Property Value
    Type Description
    int
    View Source

    TotalSkipCount

    Returns the sum of skipped test cases, including ignored and explicit tests

    Declaration
    public int TotalSkipCount { get; }
    Property Value
    Type Description
    int
    View Source

    WarningCount

    Gets count of tests with warnings

    Declaration
    public int WarningCount { get; }
    Property Value
    Type Description
    int
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0