C# Класс NUnit.Gui.Model.ResultState

The ResultState class represents the outcome of running a test. It contains two pieces of information. The Status of the test is an enum indicating whether the test passed, failed, was skipped or was inconclusive. The Label provides a more detailed breakdown for use by client runners.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Cancelled ResultState
ChildFailure ResultState
Error ResultState
Explicit ResultState
Failure ResultState
Ignored ResultState
Inconclusive ResultState
NotRunnable ResultState
SetUpError ResultState
SetUpFailure ResultState
Skipped ResultState
Success ResultState
TearDownError ResultState
Warning ResultState

Открытые методы

Метод Описание
Equals ( object obj ) : bool

Determines whether the specified System.Object, is equal to this instance.

GetHashCode ( ) : int

Returns a hash code for this instance.

ResultState ( TestStatus status )

Initializes a new instance of the ResultState class.

ResultState ( TestStatus status, FailureSite site )

Initializes a new instance of the ResultState class.

ResultState ( TestStatus status, string label )

Initializes a new instance of the ResultState class.

ResultState ( TestStatus status, string label, FailureSite site )

Initializes a new instance of the ResultState class.

ToString ( ) : string

Returns a System.String that represents this instance.

WithSite ( FailureSite site ) : ResultState

Get a new ResultState, which is the same as the current one but with the FailureSite set to the specified value.

Описание методов

Equals() публичный Метод

Determines whether the specified System.Object, is equal to this instance.
public Equals ( object obj ) : bool
obj object The to compare with this instance.
Результат bool

GetHashCode() публичный Метод

Returns a hash code for this instance.
public GetHashCode ( ) : int
Результат int

ResultState() публичный Метод

Initializes a new instance of the ResultState class.
public ResultState ( TestStatus status )
status TestStatus The TestStatus.

ResultState() публичный Метод

Initializes a new instance of the ResultState class.
public ResultState ( TestStatus status, FailureSite site )
status TestStatus The TestStatus.
site FailureSite The stage at which the result was produced

ResultState() публичный Метод

Initializes a new instance of the ResultState class.
public ResultState ( TestStatus status, string label )
status TestStatus The TestStatus.
label string The label.

ResultState() публичный Метод

Initializes a new instance of the ResultState class.
public ResultState ( TestStatus status, string label, FailureSite site )
status TestStatus The TestStatus.
label string The label.
site FailureSite The stage at which the result was produced

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

WithSite() публичный Метод

Get a new ResultState, which is the same as the current one but with the FailureSite set to the specified value.
public WithSite ( FailureSite site ) : ResultState
site FailureSite The FailureSite to use
Результат ResultState

Описание свойств

Cancelled публичное статическое свойство

The test was cancelled by the user
public static ResultState,NUnit.Gui.Model Cancelled
Результат ResultState

ChildFailure публичное статическое свойство

A suite failed because one or more child tests failed or had errors
public static ResultState,NUnit.Gui.Model ChildFailure
Результат ResultState

Error публичное статическое свойство

The test encountered an unexpected exception
public static ResultState,NUnit.Gui.Model Error
Результат ResultState

Explicit публичное статическое свойство

The test was skipped because it is explicit
public static ResultState,NUnit.Gui.Model Explicit
Результат ResultState

Failure публичное статическое свойство

The test failed
public static ResultState,NUnit.Gui.Model Failure
Результат ResultState

Ignored публичное статическое свойство

The test has been ignored.
public static ResultState,NUnit.Gui.Model Ignored
Результат ResultState

Inconclusive публичное статическое свойство

The suiteResult is inconclusive
public static ResultState,NUnit.Gui.Model Inconclusive
Результат ResultState

NotRunnable публичное статическое свойство

The test was not runnable.
public static ResultState,NUnit.Gui.Model NotRunnable
Результат ResultState

SetUpError публичное статическое свойство

A suite had an unexpected exception in its OneTimeSetUp
public static ResultState,NUnit.Gui.Model SetUpError
Результат ResultState

SetUpFailure публичное статическое свойство

A suite failed in its OneTimeSetUp
public static ResultState,NUnit.Gui.Model SetUpFailure
Результат ResultState

Skipped публичное статическое свойство

The test has been skipped.
public static ResultState,NUnit.Gui.Model Skipped
Результат ResultState

Success публичное статическое свойство

The test succeeded
public static ResultState,NUnit.Gui.Model Success
Результат ResultState

TearDownError публичное статическое свойство

A suite had an unexpected exception in its OneTimeDown
public static ResultState,NUnit.Gui.Model TearDownError
Результат ResultState

Warning публичное статическое свойство

The test issued a warning message
public static ResultState,NUnit.Gui.Model Warning
Результат ResultState