Skip to content

Commit

Permalink
Fix incorrect assertion in 'TestBuildProgressUpdated'
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Sep 19, 2020
1 parent 81bc312 commit c560a93
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,11 @@ Namespace Microsoft.VisualStudio.LanguageServices.UnitTests.Diagnostics
source.AddNewErrors(projectId1, GetDiagnosticData(projectId1))
Await waiter.ExpeditedWaitAsync()

Dim numberOfUpdateCalls = 0
AddHandler source.BuildProgressChanged, Sub(o, progress)
If progress = ExternalErrorDiagnosticUpdateSource.BuildProgress.Updated Then
Assert.Equal(1, source.GetBuildErrors().Length)
numberOfUpdateCalls += 1
Assert.Equal(numberOfUpdateCalls, source.GetBuildErrors().Length)
ElseIf progress = ExternalErrorDiagnosticUpdateSource.BuildProgress.Done Then
Assert.Equal(2, source.GetBuildErrors().Length)
End If
Expand Down

0 comments on commit c560a93

Please sign in to comment.