C# 클래스 SonarLint.VisualStudio.Progress.UnitTests.SequentialProgressControllerHelper

Test extension methods
파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
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