C# 클래스 StatePrinting.Configurations.TestingBehaviour

파일 보기 프로젝트 열기: kbilsted/StatePrinter 1 사용 예제들

공개 메소드들

메소드 설명
SetAreEqualsMethod ( TestFrameworkAreEqualsMethod areEqualsMethod ) : Configuration

Configure how to call AreEquals in the unit testing framework of your choice. Only set this field if you are using the Stateprinter.Assert functionality.

SetAssertMessageCreator ( CreateAssertMessageCallback assertMessageCreator ) : Configuration

Set the method to be called when an assert message is to be created

SetAutomaticTestRewrite ( TestRewriteIndicator indicator ) : Configuration

Evaluate the function for each failing test.

Your function can rely on anything such as an environment variable or a file on the file system.

If you only want to do this evaluation once pr. test suite execution you should wrap your function in a Lazy

TestingBehaviour ( Configuration configuration ) : System

메소드 상세

SetAreEqualsMethod() 공개 메소드

Configure how to call AreEquals in the unit testing framework of your choice. Only set this field if you are using the Stateprinter.Assert functionality.
public SetAreEqualsMethod ( TestFrameworkAreEqualsMethod areEqualsMethod ) : Configuration
areEqualsMethod TestFrameworkAreEqualsMethod
리턴 Configuration

SetAssertMessageCreator() 공개 메소드

Set the method to be called when an assert message is to be created
public SetAssertMessageCreator ( CreateAssertMessageCallback assertMessageCreator ) : Configuration
assertMessageCreator CreateAssertMessageCallback
리턴 Configuration

SetAutomaticTestRewrite() 공개 메소드

Evaluate the function for each failing test.

Your function can rely on anything such as an environment variable or a file on the file system.

If you only want to do this evaluation once pr. test suite execution you should wrap your function in a Lazy
public SetAutomaticTestRewrite ( TestRewriteIndicator indicator ) : Configuration
indicator TestRewriteIndicator
리턴 Configuration

TestingBehaviour() 공개 메소드

public TestingBehaviour ( Configuration configuration ) : System
configuration Configuration
리턴 System