C# 클래스 NUnit.Framework.Interfaces.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.
파일 보기 프로젝트 열기: nunit/nunit 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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.

Matches ( ResultState other ) : bool

Test whether this ResultState has the same Status and Label as another one. In other words, the whether two are equal ignoring the Site.

ResultState ( TestStatus status ) : System.Text

Initializes a new instance of the ResultState class.

ResultState ( TestStatus status, FailureSite site ) : System.Text

Initializes a new instance of the ResultState class.

ResultState ( TestStatus status, string label ) : System.Text

Initializes a new instance of the ResultState class.

ResultState ( TestStatus status, string label, FailureSite site ) : System.Text

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

Matches() 공개 메소드

Test whether this ResultState has the same Status and Label as another one. In other words, the whether two are equal ignoring the Site.
public Matches ( ResultState other ) : bool
other ResultState
리턴 bool

ResultState() 공개 메소드

Initializes a new instance of the ResultState class.
public ResultState ( TestStatus status ) : System.Text
status TestStatus The TestStatus.
리턴 System.Text

ResultState() 공개 메소드

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

ResultState() 공개 메소드

Initializes a new instance of the ResultState class.
public ResultState ( TestStatus status, string label ) : System.Text
status TestStatus The TestStatus.
label string The label.
리턴 System.Text

ResultState() 공개 메소드

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

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.Framework.Interfaces Cancelled
리턴 ResultState

ChildFailure 공개적으로 정적으로 프로퍼티

A suite failed because one or more child tests failed or had errors
public static ResultState,NUnit.Framework.Interfaces ChildFailure
리턴 ResultState

Error 공개적으로 정적으로 프로퍼티

The test encountered an unexpected exception
public static ResultState,NUnit.Framework.Interfaces Error
리턴 ResultState

Explicit 공개적으로 정적으로 프로퍼티

The test was skipped because it is explicit
public static ResultState,NUnit.Framework.Interfaces Explicit
리턴 ResultState

Failure 공개적으로 정적으로 프로퍼티

The test failed
public static ResultState,NUnit.Framework.Interfaces Failure
리턴 ResultState

Ignored 공개적으로 정적으로 프로퍼티

The test has been ignored.
public static ResultState,NUnit.Framework.Interfaces Ignored
리턴 ResultState

Inconclusive 공개적으로 정적으로 프로퍼티

The result is inconclusive
public static ResultState,NUnit.Framework.Interfaces Inconclusive
리턴 ResultState

NotRunnable 공개적으로 정적으로 프로퍼티

The test was not runnable.
public static ResultState,NUnit.Framework.Interfaces NotRunnable
리턴 ResultState

SetUpError 공개적으로 정적으로 프로퍼티

A suite had an unexpected exception in its OneTimeSetUp
public static ResultState,NUnit.Framework.Interfaces SetUpError
리턴 ResultState

SetUpFailure 공개적으로 정적으로 프로퍼티

A suite failed in its OneTimeSetUp
public static ResultState,NUnit.Framework.Interfaces SetUpFailure
리턴 ResultState

Skipped 공개적으로 정적으로 프로퍼티

The test has been skipped.
public static ResultState,NUnit.Framework.Interfaces Skipped
리턴 ResultState

Success 공개적으로 정적으로 프로퍼티

The test succeeded
public static ResultState,NUnit.Framework.Interfaces Success
리턴 ResultState

TearDownError 공개적으로 정적으로 프로퍼티

A suite had an unexpected exception in its OneTimeDown
public static ResultState,NUnit.Framework.Interfaces TearDownError
리턴 ResultState

Warning 공개적으로 정적으로 프로퍼티

The test issued a warning
public static ResultState,NUnit.Framework.Interfaces Warning
리턴 ResultState