Top "Xunit" questions

xUnit is the collection name for unit-testing compliant frameworks following a specific architecture.

Pass array of string to xunit test method

I want to pass an array of string to one of my XUnit test method, but when I just do …

arrays xunit xunit.net
Dependency injection in Xunit project

I am working on an ASP.Net Core MVC Web application. My Solution contains 2 projects: One for the application and …

dependency-injection asp.net-core-mvc xunit
.net core projects code coverage visual studio 2017

I am using Visual Studio Enterprise 2017 to develop my .net core projects. My solution also has some unit test projects …

code-coverage visual-studio-2017 xunit vs-unit-testing-framework
running xunit from console

I have, what is probably, a stupid question. I'm trying to run an xunit dll from the command prompt. I …

console xunit xunit.net
Unsupported expression: Non-overridable members (here: ) may not be used in setup / verification expressions

I am using xUnit and Moq for writing test cases. I am using the code below to create a Mock …

.net .net-core moq xunit
Unit test exception messages with xUnit

I'm currently converting my MsTest unit tests to xUnit. With xUnit, is there a way to test exception messages? Is …

unit-testing mstest xunit
Using ReSharper, how to show debug output during a long-running unit test?

I'm using xUnit with the ReSharper test runner and the xUnitContrib resharper plugin. When I have a long-running test, I'd …

c# visual-studio unit-testing resharper xunit
"dotnet test": how to run xunit tests projects in parallel?

I am runnning all tests projects from solution level with a single command: dotnet test how can I make all …

.net testing .net-core xunit xunit2
Automapper in xUnit testing and .NET Core 2.0

I have .NET Core 2.0 Project which contains Repository pattern and xUnit testing. Now, here is some of it's code. Controller: …

c# unit-testing automapper asp.net-core-2.0 xunit
What happened to Assert.DoesNotThrowAsync() in xUnit?

I migrated my unit test project from version 2.0.0-beta-{something} to 2.0.0 (stable) through NuGet. It seems like Assert.DoesNotThrowAsync() is …

c# xunit