Skip to content

Commit

Permalink
Fix test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierdecoster committed Apr 6, 2017
1 parent 433ce65 commit 67bcecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/NuGetGallery.Facts/Services/PackageServiceFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public async Task WillThrowWhenCreateANewPackageRegistrationWithAnIdThatMatchesA
var nugetPackage = CreateNuGetPackage(id: idThatMatchesExistingTitle);

// Assert
var ex = await Assert.ThrowsAsync<EntityException>(async () => await service.CreatePackageAsync(nugetPackage.Object, new PackageStreamMetadata(), currentUser, true));
var ex = await Assert.ThrowsAsync<InvalidPackageException>(async () => await service.CreatePackageAsync(nugetPackage.Object, new PackageStreamMetadata(), currentUser, true));

Assert.Equal(String.Format(Strings.NewRegistrationIdMatchesExistingPackageTitle, idThatMatchesExistingTitle), ex.Message);
}
Expand Down

0 comments on commit 67bcecf

Please sign in to comment.