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

Test helper to verify general IProgressController and IProgressStepOperation execution and also verification of the event mechanism IProgressEvents
Afficher le fichier Open project: SonarSource-VisualStudio/sonarlint-visualstudio Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AssertCancellationChanges ( int expectedChanges ) : void
expectedChanges int
Résultat void

AssertCorrectExecution() public méthode

public AssertCorrectExecution ( ProgressControllerResult result ) : void
result ProgressControllerResult
Résultat void

AssertExecutionProgress() public méthode

public AssertExecutionProgress ( IProgressStep step ) : void
step IProgressStep
Résultat void

AssertStepCorrectExecution() public méthode

public AssertStepCorrectExecution ( IProgressStep step, StepExecutionState finalState ) : void
step IProgressStep
finalState StepExecutionState
Résultat void

ProgressEventsVerifier() public méthode

public ProgressEventsVerifier ( IProgressEvents events ) : SonarLint.VisualStudio.Progress.Controller
events IProgressEvents
Résultat SonarLint.VisualStudio.Progress.Controller