Comment personnaliser l'entrée Xunit
using Xunit;
public class CalculatorTests
{
[Theory]
[InlineData(1, -1, true)]
[InlineData(1, -2, false)]
public void SumIsZero(int val1, int val2, bool expected)
{
Assert.True(((val1 + val2) == 0) == expected);
}
}
Upvote answer :-)