dotnet-installer/TestAssets/TestProjects/VSTestXunitDesktopAndNetCore/UnitTest1.cs

33 lines
518 B
C#
Raw Normal View History

using System;
using Xunit;
namespace TestNamespace
{
public class VSTestXunitTests
{
[Fact]
public void VSTestXunitPassTest()
{
}
[Fact]
public void VSTestXunitFailTest()
{
2016-11-01 20:26:42 +00:00
Assert.Equal(1, 2);
}
2016-11-01 20:26:42 +00:00
#if DESKTOP
[Fact]
public void VSTestXunitPassTestDesktop()
{
}
2016-11-01 20:26:42 +00:00
#else
[Fact]
public void VSTestXunitFailTestNetCoreApp()
{
2016-11-01 20:26:42 +00:00
Assert.Equal(1, 2);
}
2016-11-01 20:26:42 +00:00
#endif
}
}