Skip to content

Commit fda8e27

Browse files
committed
test
1 parent 3498a04 commit fda8e27

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

test/NuGet.Core.FuncTests/NuGet.XPlat.FuncTest/Package/Download/PackageDownloadRunnerTests.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,18 @@ public static IEnumerable<object[]> Cases()
482482
true,
483483
("Contoso.Mapped", "3.0.0")
484484
};
485+
486+
// no --source, mapping -> A&B, package in both A and B. Latest version from B installed
487+
yield return new object[]
488+
{
489+
new List<(string,string)> { ("Contoso.Mapped", "2.0.0") }, // A
490+
new List<(string,string)> { ("Contoso.Mapped", "3.0.0") }, // B
491+
new List<(string,string)> { ("A", "Contoso.*"), ("B", "Contoso.*") }, // mapped to A&B
492+
null,
493+
"Contoso.Mapped", null,
494+
true,
495+
("Contoso.Mapped", "3.0.0")
496+
};
485497
}
486498

487499
[Theory]

0 commit comments

Comments
 (0)