C# Class SonarLint.VisualStudio.Progress.UnitTests.SequentialProgressControllerTests

ファイルを表示 Open project: SonarSource-VisualStudio/sonarlint-visualstudio

Private Methods

Method Description
AssertOperationArgumentsAreNotNull ( CancellationToken token, IProgressStepExecutionEvents callback ) : void
Cancel ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that will abort and throw cancellation exception

DoNothing ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that doesn't do anything

Fail ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that will throw an exception and cause the step to fail

InitializeTestSubjectWithTestErrorHandling ( ) : ProgressEventsVerifier
NotifyProgress ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that will notify the progress

RequestToCancelAccepted ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that will request to cancel in a cancellable step

Simulates an attempt to cancel during cancellable step execution

RequestToCancelIgnored ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that will request to cancel but the step is cannot be canceled

Simulates an attempt to cancel during non-cancellable step execution

SequentialProgressController_ArgChecks ( ) : void
SequentialProgressController_EventRegistration_NonUIThread ( ) : void
SequentialProgressController_ExecutionOrder ( ) : void
SequentialProgressController_Execution_NonUIThread ( ) : void
SequentialProgressController_Execution_UIThread ( ) : void
SequentialProgressController_IProgressController_Initialize ( ) : void
SequentialProgressController_IProgressController_Initialize_Twice ( ) : void
SequentialProgressController_IProgressController_Start ( ) : void
SequentialProgressController_IProgressController_Start_Twice ( ) : void
SequentialProgressController_IProgressController_TryAbort_Cancellable ( ) : void
SequentialProgressController_IProgressController_TryAbort_ControllerDrivenCancellation ( ) : void
SequentialProgressController_IProgressController_TryAbort_NonCancellable ( ) : void
SequentialProgressController_IProgressController_TryAbort_NonStarted ( ) : void
SequentialProgressController_IProgressEvents_MultiStep_Cancelled ( ) : void
SequentialProgressController_IProgressEvents_MultiStep_Failed ( ) : void
SequentialProgressController_IProgressEvents_MultiStep_Succeeded ( ) : void
SequentialProgressController_IProgressEvents_ProgessChanges ( ) : void
SequentialProgressController_IProgressEvents_StepCancelled ( ) : void
SequentialProgressController_IProgressEvents_StepFailed ( ) : void
SequentialProgressController_IProgressEvents_StepSucceeded ( ) : void
TestCleanup ( ) : void
TestInitialize ( ) : void
VerifyControllerExecuting ( CancellationToken token, IProgressStepExecutionEvents notifier ) : void

Step operation that verifies that the controller is started but not finished