This commit is contained in:
Paul Stovell 2015-11-21 02:31:18 +10:00
Родитель 2fcf94f9f8
Коммит 551e627c78
1 изменённых файлов: 19 добавлений и 0 удалений

Просмотреть файл

@ -213,6 +213,25 @@ namespace Microsoft.Dnx.Tooling.FunctionalTests
TestUtils.CleanUpTestDir<DnuPublishTests>(sdk);
}
[Theory, TraceTest]
[MemberData(nameof(DnxSdks))]
public void PublishedAppCanBeBundled(DnxSdk sdk)
{
// Arrange
var solution = TestUtils.GetSolution<DnuPublishTests>(sdk, "HelloWorld");
var outputPath = Path.Combine(solution.RootPath, "Output");
var project = solution.GetProject("HelloWorld");
// Act
sdk.Dnu.Restore(project).EnsureSuccess();
sdk.Dnu.Publish(project.ProjectDirectory, outputPath, $"--no-source --bundle nupkg --bundle-out \"{outputPath}\"").EnsureSuccess();
// Assert
Assert.True(File.Exists(Path.Combine(outputPath, "HelloWorld.1.0.0.nupkg")));
TestUtils.CleanUpTestDir<DnuPublishTests>(sdk);
}
[Theory, TraceTest]
[MemberData(nameof(DnxSdks))]
public void IISCommandInvalid(DnxSdk sdk)