developer82
developer82

Reputation: 13733

Visual Studio 2017 Unit Test Project vs xUnit Test Project

In .NET Core under Visual Studio 2015 one had to create a unit test project that was based on xunit, though the command line (no dedicated project was available in Visual Studio for .NET Core).

In Visual Studio 2017, under .NET Core section there are now 2 types of unit testing projects available:

  1. Unit Test Project (.NET Core)
  2. xUnit Test Project (.NET Core)

What is the difference between them? What is the recommended one these days?

Upvotes: 28

Views: 7488

Answers (2)

Shuaib
Shuaib

Reputation: 1579

They are completely 2 different Unit Test Frameworks. There is some basic information/documentation available for xUnit at http://xunit.github.io for xUnit but not a full one. The answer to: "What is the recommended one these days?" It depends on your personal preference. I prefer xUnit because xUnit integrates well with Visual Studio and is used by Microsoft team to test .net core. You can chose whichever you find suitable.

Upvotes: 1

Ilya Chumakov
Ilya Chumakov

Reputation: 25039

Unit Test Project has MSTest V2 framework installed.

xUnit Test Project has xUnit.

It's just two different test frameworks.

Unit Testing in .NET Core.

Upvotes: 10

Related Questions