C# 클래스 NFluent.Extensibility.ReverseEngineeringExceptionMessagesHelper

Helper class that helps to retrieve well formated strings exception messages from a failing NFluent Check execution. 1. You provide the lambda containing the failing check. You run it (from within a test for instance) 2. You copy the content of the file generated (with path provided as argument, or default value: ). 3. You paste the exception message to your nunit ExpectedMessage value.
파일 보기 프로젝트 열기: tpierrain/NFluent

공개 메소드들

메소드 설명
DumpReadyToCopyAndPasteExceptionMessageInAFile ( System.Action lambda ) : void

Generate a file containing the ready-to-be-copied-and-pasted-in-a-test exception message that occured while executing the provided lambda.

DumpReadyToCopyAndPasteExceptionMessageInAFile ( System.Action lambda, string dumpedMessageFilePath ) : void

Generate a file containing the ready-to-be-copied-and-pasted-in-a-test exception message that occured while executing the provided lambda.

GetProperlyEscapedMessage ( string input ) : string

Build a ready-to-be-copied-and-pasted-in-a-string message (it will "escape" tabs, CRLF, and quote characters).

비공개 메소드들

메소드 설명
DumpProperlyEscapedMessage ( string outputfilePath, string message ) : void

메소드 상세

DumpReadyToCopyAndPasteExceptionMessageInAFile() 공개 정적인 메소드

Generate a file containing the ready-to-be-copied-and-pasted-in-a-test exception message that occured while executing the provided lambda.
public static DumpReadyToCopyAndPasteExceptionMessageInAFile ( System.Action lambda ) : void
lambda System.Action A lambda that generates a FluentException.
리턴 void

DumpReadyToCopyAndPasteExceptionMessageInAFile() 공개 정적인 메소드

Generate a file containing the ready-to-be-copied-and-pasted-in-a-test exception message that occured while executing the provided lambda.
public static DumpReadyToCopyAndPasteExceptionMessageInAFile ( System.Action lambda, string dumpedMessageFilePath ) : void
lambda System.Action A lambda that generates a FluentException.
dumpedMessageFilePath string The path of the file to be generated with the (ready to be copied and pasted) exception message as content.
리턴 void

GetProperlyEscapedMessage() 공개 정적인 메소드

Build a ready-to-be-copied-and-pasted-in-a-string message (it will "escape" tabs, CRLF, and quote characters).
public static GetProperlyEscapedMessage ( string input ) : string
input string The input message.
리턴 string