C# Class StatePrinting.Configurations.TestingBehaviour

Afficher le fichier Open project: kbilsted/StatePrinter Class Usage Examples

Méthodes publiques

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

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
Résultat Configuration

SetAssertMessageCreator() public méthode

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

SetAutomaticTestRewrite() public méthode

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
Résultat Configuration

TestingBehaviour() public méthode

public TestingBehaviour ( Configuration configuration ) : System
configuration Configuration
Résultat System