C# Class NFluent.Helpers.ExceptionHelper

Offer factory services to get adequate exception type depending on testing framework.
Afficher le fichier Open project: tpierrain/NFluent

Private Properties

Свойство Type Description
ExceptionScanner ExceptionConstructor

Méthodes publiques

Méthode 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

Méthode Description
ExceptionScanner ( string assemblyMarker, string nameSpace, string assertionExceptionName, string ignoreExceptionName, string inconclusiveExceptionName ) : ExceptionConstructor

Method Details

BuildException() public static méthode

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.
Résultat System.Exception

DumpInnerExceptionStackTrace() public static méthode

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.
Résultat string