C# Class NFluent.Helpers.ExceptionHelper

Offer factory services to get adequate exception type depending on testing framework.
Mostra file Open project: tpierrain/NFluent

Private Properties

Property Type Description
ExceptionScanner ExceptionConstructor

Public Methods

Method Description
BuildException ( string theMessage ) : Exception

Builds an exception with the given message. Automatically detect the exception type to use depending on the used check framework.

DumpInnerExceptionStackTrace ( Exception exception ) : string

Return a string containing the complete stack trace of the InnerExceptions for the given Exception.

Private Methods

Method Description
ExceptionScanner ( string assemblyMarker, string nameSpace, string assertionExceptionName, string ignoreExceptionName, string inconclusiveExceptionName ) : ExceptionConstructor

Method Details

BuildException() public static method

Builds an exception with the given message. Automatically detect the exception type to use depending on the used check framework.
public static BuildException ( string theMessage ) : Exception
theMessage string The message to build the exception with.
return System.Exception

DumpInnerExceptionStackTrace() public static method

Return a string containing the complete stack trace of the InnerExceptions for the given Exception.
public static DumpInnerExceptionStackTrace ( Exception exception ) : string
exception System.Exception The exception.
return string