dotnet-installer/test/binding-redirects.Tests/BindingRedirectTests.cs

40 lines
1.6 KiB
C#
Raw Normal View History

2016-04-21 20:41:22 +00:00
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using FluentAssertions;
2016-04-21 20:41:22 +00:00
using Microsoft.DotNet.Tools.Test.Utilities;
using Xunit;
namespace Microsoft.DotNet.BindingRedirects.Tests
2016-04-21 20:41:22 +00:00
{
public class GivenAnAppWithRedirectsAndExecutableDependency : TestBase, IClassFixture<TestSetupFixture>
{
public string _appWithConfigProjectRoot;
public string _appWithoutConfigProjectRoot;
2016-04-21 20:41:22 +00:00
public GivenAnAppWithRedirectsAndExecutableDependency(TestSetupFixture testSetup)
{
_appWithConfigProjectRoot = testSetup.AppWithConfigProjectRoot;
_appWithoutConfigProjectRoot = testSetup.AppWithoutConfigProjectRoot;
2016-04-21 20:41:22 +00:00
}
[Fact(Skip="https://github.com/dotnet/cli/issues/4514")]
public void Tool_Command_Runs_Executable_Dependency_For_App_With_Config()
{
new DependencyToolInvokerCommand()
.WithWorkingDirectory(_appWithConfigProjectRoot)
.ExecuteWithCapturedOutput("desktop-binding-redirects", "net46", "")
.Should().Pass().And.NotHaveStdErr();
}
[Fact(Skip="https://github.com/dotnet/cli/issues/4514")]
public void Tool_Command_Runs_Executable_Dependency_For_App_Without_Config()
{
new DependencyToolInvokerCommand()
.WithWorkingDirectory(_appWithoutConfigProjectRoot)
.ExecuteWithCapturedOutput("desktop-binding-redirects", "net46", "")
.Should().Pass().And.NotHaveStdErr();
}
2016-04-21 20:41:22 +00:00
}
}