Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Commit

Permalink
Put back some checks with Times.Never.
Browse files Browse the repository at this point in the history
  • Loading branch information
agr committed Jun 14, 2019
1 parent f0f52c4 commit db4447b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ public async Task MakesPackageAvailableAndSendsEmailUponSuccess()
x => x.SetStatusAsync(PackageValidatingEntity, ValidationSet, PackageStatus.Available),
Times.Once);

PackageFileServiceMock.Verify(
x => x.DeletePackageForValidationSetAsync(ValidationSet),
Times.Never);

MessageServiceMock
.Verify(ms => ms.SendPublishedMessageAsync(Package), Times.Once());
MessageServiceMock
Expand Down Expand Up @@ -446,6 +450,9 @@ public async Task MarksPackageStatusBasedOnValidatorResults(
Times.Never);
}

PackageFileServiceMock.Verify(
x => x.DeletePackageForValidationSetAsync(ValidationSet),
Times.Never);
TelemetryServiceMock
.Verify(ts => ts.TrackTotalValidationDuration(It.IsAny<TimeSpan>(), It.IsAny<bool>()), Times.Once());
Assert.InRange(duration, before - ValidationSet.Created, after - ValidationSet.Created);
Expand Down

0 comments on commit db4447b

Please sign in to comment.