Test methods cannot have multiple Fact or Theory attributes
A test method has multiple Fact or Theory attributes.
A test method only needs one Fact or Theory attribute.
To fix a violation of this rule, remove all but one of the Fact or Theory attributes.
using Xunit;
public class xUnit1002
{
[Fact, Theory]
public void TestMethod()
{ }
}
using Xunit;
public class xUnit1002
{
[Fact]
public void TestMethod()
{ }
}
using Xunit;
public class xUnit1002
{
[Theory]
public void TestMethod()
{ }
}