Top "Xunit" questions

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

Mocking MediatR 3 with Moq

We've recently started using MediatR to allow us to de-clutter controller actions as we re-factor a large customer facing portal …

c# unit-testing moq xunit mediatr
How to unit test a class which calls service bus queue client SendAsync method

I have a interface which has a method to create instance of queue client and message factory. I have created …

c# unit-testing moq xunit azure-servicebus-queues
Unable to get ConfigurationBuilder to read from appsettings.json in xunit class library in ASP.NET Core 1.0 RC2

I am trying to do the following in an XUnit project to get the connectionstring to the database my tests …

asp.net asp.net-core xunit xunit.net xunit2
What is the community-preferred Ruby unit testing framework?

In the Java space, JUnit is predominately used and in .NET I believe nUnit is very popular. Is a community …

ruby unit-testing xunit
Change build status to succes in jenkins

My jenkins jobs use testlink to store their test results. The testlink plugin changes the build status to unstable if …

jenkins jenkins-plugins xunit testlink
How to test for exceptions thrown using xUnit, SubSpec and FakeItEasy

I’m using xUnit, SubSpec and FakeItEasy for my unit tests. I’ve so far created some positive unit tests …

c# unit-testing bdd xunit fakeiteasy
unit testing c# properties

I am working with a class that has lots of properties. For example; public class Bib { public int PartQty { get; …

c# .net tdd xunit
How do you filter xunit tests by trait with "dotnet test"?

I have a .NET Core test project that uses Xunit 2.2. Some of my tests are marked with traits. [Fact] [Trait("…

.net-core xunit
How can I run xUnit Unit Tests with VS2015 Preview?

I added the "xUnit.net runner for Visual Studio" v0.99.8 via Extensions Manager, but when I open the Test Explorer …

unit-testing xunit xunit.net visual-studio-2015
IsType<T> and IsType(object, object) throwing IsTypeException

I am attempting to assert that an object being returned by a method call is of the type List<…

c# xunit xunit.net