C# Class StatePrinting.Configurations.TestingBehaviour

Mostrar archivo Open project: kbilsted/StatePrinter Class Usage Examples

Public Methods

Method Description
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

Method Details

SetAreEqualsMethod() public method

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
return Configuration

SetAssertMessageCreator() public method

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

SetAutomaticTestRewrite() public method

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
return Configuration

TestingBehaviour() public method

public TestingBehaviour ( Configuration configuration ) : System
configuration Configuration
return System