C# Класс MsgPack.TestSummaryReporter

Implements test reporting via dedicated Result object.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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