i am trying to write a test case using Xunit where i want check if the text i am passing is not expected one throw exception saying the value should be the same only
Here is my code
[Theory]
[InlineData("Goods","Goods")]
[InlineData("Test","Goods")]
public void Vehicle(string use,string expected)
{
// Arrange
var risk= CreateRisk();
var request = new Request();
risk.Use = use;
// Act
Test().Mapping(risk, request);
// Assert
Assert.Throws<ArgumentException>(expected != "Goods" ? "Vehicle Use Should be with Goods": expected);
}
I am not sure how i can frame this. Thanks in advance