Creating unit tests in the ASP.NET core

When I right-clicked a class in the application code in an ASP.NET MVC 4.6 project, I have this option to create a UNIT Test:

enter image description here

But in my ASP.NET core (VS2015 Core 1.0.0 Tooling Preview 2) I do not have this option when I right-click the class.

I read that XUnit is now the recommended test base for ASP.NET Core projects. Can't use the old, good Microsoft Unit Testing Framework?

Are we forced to use XUnit now?

Update: It looks like there will be a compatible version of the MSTest Framework → SO Thread in the future .

ASP.NET Core RC2: MSTest Framework .NET Core RC2/ASP.NET Core RC2 XUnit.

+4
1

MS Test, NUnit XUnit dotnet. XUnit , . XUnit .

XUnit , . ( , [Setup] [TearDown]).

2 :

  • , , . .

  • XUnit , , NUnit, .

, , , , , XUnit .

: XUnit .net, .

0

All Articles