40 lines
652 B
C#
40 lines
652 B
C#
![]() |
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||
|
|
|||
|
namespace TestNamespace
|
|||
|
{
|
|||
|
public class Program
|
|||
|
{
|
|||
|
public static void Main(string[] args)
|
|||
|
{
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
[TestClass]
|
|||
|
public class VSTestTests
|
|||
|
{
|
|||
|
[TestMethod]
|
|||
|
public void VSTestPassTest()
|
|||
|
{
|
|||
|
}
|
|||
|
|
|||
|
[TestMethod]
|
|||
|
public void VSTestFailTest()
|
|||
|
{
|
|||
|
Assert.Fail();
|
|||
|
}
|
|||
|
|
|||
|
#if DESKTOP
|
|||
|
[TestMethod]
|
|||
|
public void VSTestPassTestDesktop()
|
|||
|
{
|
|||
|
}
|
|||
|
#else
|
|||
|
[TestMethod]
|
|||
|
public void VSTestFailTestNetCoreApp()
|
|||
|
{
|
|||
|
Assert.Fail();
|
|||
|
}
|
|||
|
#endif
|
|||
|
}
|
|||
|
}
|