Top "Xunit" questions

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

ExpectedException xunit .net core

I'm writing unit test for core application. Im trying to check, that my class throws exception. But ExpectedException attribute throws …

unit-testing asp.net-core .net-core xunit xunit.net
Populate IConfiguration for unit tests

.NET Core configuration allows so many options to add values (environment variables, json files, command line args). I just can't …

asp.net-core .net-core xunit asp.net-core-2.2 .net-core-2.2
VS 2013 MSTest vs nUnit vs xUnit

I realize there have been a LOT of questions on this topic but somehow I haven't found one that addressed …

unit-testing nunit automated-tests mstest xunit
How to run xUnit test DLL in Commandline without building the project

I have a project in .NET Core and have built tests using xUnit. Now I wanted to run the test …

unit-testing .net-core xunit xunit.net
Xunit 2.3.0 Unable to pass dates as inline params

In xUnit 2.2 and prior versions, we were able to pass date strings as inline data when implementing a Theory. [Theory] […

c# xunit xunit.net
xUnit Assert.All() async

I have this example test using xUnit: [Fact] public void SomeTest() { Assert.All(itemList, async item=> { var i = await …

c# xunit xunit.net xunit2
How to attach message to rspec check?

In rspec: Can I attach a message to a check the same way as I would do in xUnit style …

ruby tdd rspec xunit
Can't run Xunit tests on Visual Studio 2017

Can't run all the XUnit tests on my Visual Studio 2017. Version 15.6.4 They can be viewed in TestExploer and when I …

visual-studio unit-testing testing xunit test-runner
Unit Testing on Controller that uses AutoMapper

I am trying to unit test a UpdateUser Controller that uses AutoMapping. Here is the code for the controller UpdateUserController …

asp.net-mvc moq automapper xunit
SslHandshakeException: An error occurred while attempting to establish an SSL or TLS connection

I'm trying to access gmail emails using imap and the code is failing at the ssl handshake without showing me …

c# ssl imap xunit mailkit