I created project to perform unit test with xUnit, and I want to perform simple test that I could check it's all ok. When I'm running this test I got view as below. I think should be light on green.
[Fact]
public void PassingTest()
{
Assert.Equal(4, Add(2, 2));
}
public int Add(int x, int y)
{
return x + y;
}
Member
10 Points
17 Posts
Use of xUnit in .Net Core
Oct 24, 2019 09:22 AM|Antero00|LINK
Hi,
I created project to perform unit test with xUnit, and I want to perform simple test that I could check it's all ok. When I'm running this test I got view as below. I think should be light on green.
Contributor
4963 Points
4218 Posts
Re: Use of xUnit in .Net Core
Oct 24, 2019 02:06 PM|DA924|LINK
To me, the test should be like this.
Member
10 Points
17 Posts
Re: Use of xUnit in .Net Core
Oct 24, 2019 05:11 PM|Antero00|LINK
Problem was solved, just I need installed xunit.runner.visualstudio. I thought that when I installed xunit this package has also installed.