Make test windows-only
This commit is contained in:
parent
139911b8b3
commit
60bd88d261
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,7 @@ using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Microsoft.DotNet.Cli.Utils;
|
using Microsoft.DotNet.Cli.Utils;
|
||||||
using Microsoft.DotNet.Tools.Test.Utilities;
|
using Microsoft.DotNet.Tools.Test.Utilities;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using FluentAssertions;
|
using FluentAssertions;
|
||||||
|
|
||||||
|
@ -48,11 +49,17 @@ namespace Microsoft.DotNet.Tests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// need conditional theories so we can skip on non-Windows
|
||||||
[Theory]
|
[Theory]
|
||||||
[InlineData(".NETStandardApp,Version=v1.5")]
|
[InlineData(".NETStandardApp,Version=v1.5")]
|
||||||
[InlineData(".NETFramework,Version=v4.5.1")]
|
[InlineData(".NETFramework,Version=v4.5.1")]
|
||||||
public void TestFrameworkSpecificDependencyToolsCanBeInvoked(string framework)
|
public void TestFrameworkSpecificDependencyToolsCanBeInvoked(string framework)
|
||||||
{
|
{
|
||||||
|
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
var appDirectory = Path.Combine(_testProjectsRoot, "AppWithDirectDependencyDesktopAndPortable");
|
var appDirectory = Path.Combine(_testProjectsRoot, "AppWithDirectDependencyDesktopAndPortable");
|
||||||
|
|
||||||
new BuildCommand(Path.Combine(appDirectory, "project.json"))
|
new BuildCommand(Path.Combine(appDirectory, "project.json"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue