Top "Xunit.net" questions

xUnit.

NUnit vs. MbUnit vs. MSTest vs. xUnit.net

There are quite a lot of unittesting frameworks out there for .NET. I found this little feature comparison: http://xunit.…

unit-testing nunit mstest mbunit xunit.net
Is Assert.Fail() considered bad practice?

I use Assert.Fail a lot when doing TDD. I'm usually working on one test at a time but when …

unit-testing xunit.net
xUnit.net: Global setup + teardown?

This question is about the unit testing framework xUnit.net. I need to run some code before any test is …

c# .net xunit.net
Pass complex parameters to [Theory]

Xunit has a nice feature: you can create one test with a Theory attribute and put data in InlineData attributes, …

c# unit-testing xunit xunit.net
Execute unit tests serially (rather than in parallel)

I am attempting to unit test a WCF host management engine that I have written. The engine basically creates ServiceHost …

c# .net unit-testing xunit.net
Why is the xUnit Runner not finding my tests

I have a xUnit.net Test as follows: static class MyTestClass { [Fact] static void MyTestMethod() { } } The xUnit plugin for VS 2012 …

unit-testing visual-studio-2012 xunit.net testdriven.net
How to run all tests in Visual Studio Code

The latest version of VS Code already provides an easy way of running a single test as pointed on Tyler …

.net visual-studio-code .net-core xunit.net
Test parameterization in xUnit.net similar to NUnit

Are there any means in xUnit.net framework similar to the following features of NUnit? [Test, TestCaseSource("CurrencySamples")] public void …

c# .net unit-testing nunit xunit.net
Difference between Fact and Theory? - xUnit.net

I'm new to xUnit.net and AutoFixture. I'm currently working on a "testproject" to get familiar with xUnit.net and …

c# xunit.net autofixture
Run code once before and after ALL tests in xUnit.net

TL;DR - I'm looking for xUnit's equivalent of MSTest's AssemblyInitialize (aka the ONE feature it has that I like). …

c# automated-tests xunit.net