C# Класс StatePrinting.Configurations.TestingBehaviour

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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