C# Класс SonarLint.VisualStudio.Progress.UnitTests.SequentialProgressControllerHelper

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

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

Метод Описание
ConfigureToThrowAssertExceptions ( SequentialProgressController controller ) : ConfigurableErrorNotifier

The ProgressControllerStep which are used by default will swallow the assert exceptions which means that investigating why something is failing requires more time and effort. This extension method will record the first UnitTestAssertException which was thrown during execution and will rethrow it on a way that will allow the test to fail and see the original stack that caused the test failure (on Finished event)

InitializeWithTestErrorHandling ( SequentialProgressController controller ) : ConfigurableErrorNotifier

Initializes the specified controller with custom error handler that will allow assertions to be raised

Описание методов

ConfigureToThrowAssertExceptions() публичный статический Метод

The ProgressControllerStep which are used by default will swallow the assert exceptions which means that investigating why something is failing requires more time and effort. This extension method will record the first UnitTestAssertException which was thrown during execution and will rethrow it on a way that will allow the test to fail and see the original stack that caused the test failure (on Finished event)
public static ConfigureToThrowAssertExceptions ( SequentialProgressController controller ) : ConfigurableErrorNotifier
controller SonarLint.VisualStudio.Progress.Controller.SequentialProgressController The controller to configure
Результат ConfigurableErrorNotifier

InitializeWithTestErrorHandling() публичный статический Метод

Initializes the specified controller with custom error handler that will allow assertions to be raised
public static InitializeWithTestErrorHandling ( SequentialProgressController controller ) : ConfigurableErrorNotifier
controller SonarLint.VisualStudio.Progress.Controller.SequentialProgressController Controller instance to initialize
Результат ConfigurableErrorNotifier