Fix dotnet-tests to run tests on net46, since we only support netstandard1.3 in ProjectModel.

This commit is contained in:
Eric Erhardt 2016-10-11 16:59:58 -05:00
parent 7618cce420
commit 00f543d089
4 changed files with 28 additions and 24 deletions

View file

@ -8,14 +8,14 @@ namespace FakeTests
{
public class GivenThatIWantSomeFakeTests
{
#if NET451
#if NET46
[Fact]
public void NET451_succeeds()
public void NET46_succeeds()
{
Assert.True(true);
}
[Fact(Skip="Skipped for NET451")]
[Fact(Skip="Skipped for NET46")]
public void SkippedTest()
{
@ -45,8 +45,8 @@ namespace FakeTests
{
var shouldFail = string.IsNullOrEmpty(Environment.GetEnvironmentVariable("DOTNET_TEST_SHOULD_FAIL"));
#if NET451
Assert.True(shouldFail, "Failing in NET451");
#if NET46
Assert.True(shouldFail, "Failing in NET46");
#else
Assert.True(shouldFail, "Failing in NETCOREAPP1.0");
#endif