how to customize xunit input

87

how to customize xunit input -

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);
    }
}

Comments

Submit
0 Comments