Skip to content

Commit

Permalink
Added test case for wrong source repository url
Browse files Browse the repository at this point in the history
  • Loading branch information
germane_rmd committed Aug 17, 2023
1 parent 42e51aa commit 42751b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/Cake.ExtendedNuGet.Tests/ExtendedNuGetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,18 @@ public void IsNuGetPublishedAltSrcShouldBeFalse ()
Assert.False (p);
}

[Fact]
public void IsNugetPublishedInvalidSourceShouldBeFalse ()
{
var p = context.CakeContext.IsNuGetPublished (
"Xamarin.Android.Support.v4",
"23.1.1.0",
"https://api.nuget.org/v3/wrong.json"
);

Assert.False (p);
}

[Fact]
public void NuGetPackageIdFromFile ()
{
Expand Down

0 comments on commit 42751b1

Please sign in to comment.