C# Класс NUnit.Framework.Internal.Commands.ExpectedExceptionCommand

TODO: Documentation needed for class
Наследование: NUnit.Framework.Internal.Commands.DelegatingTestCommand
Показать файл Открыть проект

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

Метод Описание
Execute ( TestExecutionContext context ) : TestResult

Runs the test, saving a TestResult in the supplied TestExecutionContext

ExpectedExceptionCommand ( NUnit.Framework.Internal.Commands.TestCommand innerCommand, NUnit.Framework.Api.ExpectedExceptionData exceptionData ) : System

Initializes a new instance of the ExpectedExceptionCommand class.

ProcessException ( Exception exception, TestExecutionContext context ) : void

Handles processing when an exception was thrown.

ProcessNoException ( TestExecutionContext context ) : void

Handles processing when no exception was thrown.

Приватные методы

Метод Описание
CombineWithUserMessage ( string message ) : string
GetStackTrace ( Exception exception ) : string
IsExpectedExceptionType ( Exception exception ) : bool
IsExpectedMessageMatch ( Exception exception ) : bool
NoExceptionMessage ( ) : string
WrongTextMessage ( Exception exception ) : string
WrongTypeMessage ( Exception exception ) : string

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

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

Runs the test, saving a TestResult in the supplied TestExecutionContext
public Execute ( TestExecutionContext context ) : TestResult
context TestExecutionContext The context in which the test is to be run.
Результат TestResult

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

Initializes a new instance of the ExpectedExceptionCommand class.
public ExpectedExceptionCommand ( NUnit.Framework.Internal.Commands.TestCommand innerCommand, NUnit.Framework.Api.ExpectedExceptionData exceptionData ) : System
innerCommand NUnit.Framework.Internal.Commands.TestCommand The inner command.
exceptionData NUnit.Framework.Api.ExpectedExceptionData The exception data.
Результат System

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

Handles processing when an exception was thrown.
public ProcessException ( Exception exception, TestExecutionContext context ) : void
exception System.Exception The exception.
context TestExecutionContext The execution context.
Результат void

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

Handles processing when no exception was thrown.
public ProcessNoException ( TestExecutionContext context ) : void
context TestExecutionContext The execution context.
Результат void