C# 클래스 MsgPack.TestSummaryReporter

Implements test reporting via dedicated Result object.
파일 보기 프로젝트 열기: msgpack/msgpack-cli 1 사용 예제들

공개 메소드들

메소드 설명
FormatMethodName ( string methodName ) : string

Formats the name of the method for reporting.

HandleFatalException ( string stage, Exception exception, Result resultPrefab, GameObject resultVertical ) : void

Handles the fatal exception.

RecordError ( ) : void

Records that an error has been ocurred.

RecordError ( int errorCount ) : void

Records that a critical error has been ocurred and specified tests will be skipped as error.

RecordFailure ( ) : void

Records that last test has been failed.

RecordSkip ( ) : void

Records that last test has been skipped.

RecordSuccess ( ) : void

Records that last test has been succeeded.

SetCurrentTestClassName ( string testClassName ) : void

Sets the name of the current test class.

TestSummaryReporter ( string testClassName, bool isAllRunMode, Result resultPrefab, GameObject resultVertical ) : System

Initializes a new instance of the TestSummaryReporter class.

비공개 메소드들

메소드 설명
CreateNewResult ( Result resultPrefab, GameObject resultVertical ) : Result

Creates the new Result object.

UpdateResult ( ) : void

Updates the summary Result.

메소드 상세

FormatMethodName() 공개 메소드

Formats the name of the method for reporting.
public FormatMethodName ( string methodName ) : string
methodName string Name of the method.
리턴 string

HandleFatalException() 공개 메소드

Handles the fatal exception.
public HandleFatalException ( string stage, Exception exception, Result resultPrefab, GameObject resultVertical ) : void
stage string The stage of test execution for reporting.
exception System.Exception The fatal exception.
resultPrefab Result The prefab for test result indicators.
resultVertical UnityEngine.GameObject The vertical area which test result indicators to be belonging.
리턴 void

RecordError() 공개 메소드

Records that an error has been ocurred.
public RecordError ( ) : void
리턴 void

RecordError() 공개 메소드

Records that a critical error has been ocurred and specified tests will be skipped as error.
public RecordError ( int errorCount ) : void
errorCount int The count of tests will be skipped as error
리턴 void

RecordFailure() 공개 메소드

Records that last test has been failed.
public RecordFailure ( ) : void
리턴 void

RecordSkip() 공개 메소드

Records that last test has been skipped.
public RecordSkip ( ) : void
리턴 void

RecordSuccess() 공개 메소드

Records that last test has been succeeded.
public RecordSuccess ( ) : void
리턴 void

SetCurrentTestClassName() 공개 메소드

Sets the name of the current test class.
public SetCurrentTestClassName ( string testClassName ) : void
testClassName string Name of the test class.
리턴 void

TestSummaryReporter() 공개 메소드

Initializes a new instance of the TestSummaryReporter class.
public TestSummaryReporter ( string testClassName, bool isAllRunMode, Result resultPrefab, GameObject resultVertical ) : System
testClassName string Name of the test class.
isAllRunMode bool true if the summary reporting is in context of all-run mode..
resultPrefab Result The prefab for test result indicators.
resultVertical UnityEngine.GameObject The vertical area which test result indicators to be belonging.
리턴 System