36 lines
751 B
C#
36 lines
751 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace SampleTestAssembly
|
|
{
|
|
public class Class1
|
|
{
|
|
[Fact]
|
|
[Trait("TraitName1", "TraitValue1")]
|
|
public void Pass()
|
|
{
|
|
Thread.Sleep(TimeSpan.FromSeconds(1));
|
|
}
|
|
|
|
[Fact]
|
|
[Trait("TraitName1", "TraitValue2")]
|
|
public void Fail()
|
|
{
|
|
Thread.Sleep(TimeSpan.FromSeconds(2));
|
|
Assert.True(true);
|
|
}
|
|
|
|
[Fact(Skip = "Testing")]
|
|
[Trait("TraitName2", "TraitValue2")]
|
|
public void Skip()
|
|
{
|
|
Thread.Sleep(TimeSpan.FromSeconds(1));
|
|
}
|
|
}
|
|
}
|