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

Test helper to verify general IProgressController and IProgressStepOperation execution and also verification of the event mechanism IProgressEvents
ファイルを表示 Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Public Methods

Method Description
AssertCancellationChanges ( int expectedChanges ) : void
AssertCorrectExecution ( ProgressControllerResult result ) : void
AssertExecutionProgress ( IProgressStep step ) : void
AssertStepCorrectExecution ( IProgressStep step, StepExecutionState finalState ) : void
ProgressEventsVerifier ( IProgressEvents events ) : SonarLint.VisualStudio.Progress.Controller

Private Methods

Method Description
AssertEventHandlerArgsNotNull ( object sender, EventArgs e ) : void
IsFinalState ( StepExecutionState state ) : bool
OnCancellationSupportChanged ( object sender, CancellationSupportChangedEventArgs e ) : void
OnFinished ( object sender, ProgressControllerFinishedEventArgs e ) : void
OnStarted ( object sender, ProgressEventArgs e ) : void
OnStepExecutionChanged ( object sender, StepExecutionChangedEventArgs e ) : void
VerifyProgressSequence ( bool determinate, double>.Tuple expectedSequence, double>.Tuple actualSequence ) : void
VerifyStateTransitions ( StepExecutionState transition, StepExecutionState finalState ) : void

Method Details

AssertCancellationChanges() public method

public AssertCancellationChanges ( int expectedChanges ) : void
expectedChanges int
return void

AssertCorrectExecution() public method

public AssertCorrectExecution ( ProgressControllerResult result ) : void
result ProgressControllerResult
return void

AssertExecutionProgress() public method

public AssertExecutionProgress ( IProgressStep step ) : void
step IProgressStep
return void

AssertStepCorrectExecution() public method

public AssertStepCorrectExecution ( IProgressStep step, StepExecutionState finalState ) : void
step IProgressStep
finalState StepExecutionState
return void

ProgressEventsVerifier() public method

public ProgressEventsVerifier ( IProgressEvents events ) : SonarLint.VisualStudio.Progress.Controller
events IProgressEvents
return SonarLint.VisualStudio.Progress.Controller