Skip to content

Commit

Permalink
Add cross-targeting coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nguerrera committed May 18, 2017
1 parent 25c7fce commit 7ba7a66
Showing 1 changed file with 20 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,13 +378,28 @@ public void It_generates_binding_redirects_if_needed()
});
}

[WindowsOnlyFact]
public void It_places_package_satellites_correctly()
[WindowsOnlyTheory]
[InlineData(true)]
[InlineData(false)]
public void It_places_package_satellites_correctly(bool crossTarget)
{
var testAsset = _testAssetsManager
.CopyTestAsset("DesktopUsingPackageWithSatellites")
.WithSource()
.Restore(Log);
.CopyTestAsset(
"DesktopUsingPackageWithSatellites",
identifier: crossTarget ? "_cross" : "")
.WithSource();

if (crossTarget)
{
testAsset = testAsset.WithProjectChanges(project =>
{
var ns = project.Root.Name.Namespace;
var propertyGroup = project.Root.Elements(ns + "PropertyGroup").First();
propertyGroup.Element(ns + "TargetFramework").Name += "s";
});
}

testAsset.Restore(Log);

var buildCommand = new BuildCommand(Log, testAsset.TestRoot);
buildCommand
Expand Down

0 comments on commit 7ba7a66

Please sign in to comment.