Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Active reading [<https://en.wikipedia.org/wiki/XUnit> <https://en.wikipedia.org/wiki/ASP.NET_Core> <https://en.wikipedia.org/wiki/Unit_testing>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Create unit tests in ASP.NET coreCore

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then, I have this option to create a UNIT Testunit test:

enter image description hereEnter image description here

But in my ASP.NET Core (VS2015Visual Studio 2015 Core 1.0.0 Tooling Preview 2) I don't have this option available, when I right-click the class.

I have read that XUnitxUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing FrameworkUnit Testing Framework?

Are we really forced to use XUnitxUnit now?

Update: It It looks like there will be a compatible version of the MSTest Framework in the future --> SO ThreadStack Overflow question.

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As

Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2

As I don't want to switch to XUnitxUnit.

Create unit tests in ASP.NET core

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

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

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As I don't want to switch to XUnit.

Create unit tests in ASP.NET Core

When I right-click a class in my 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 (Visual Studio 2015 Core 1.0.0 Tooling Preview 2) I don't have this option available, when I right-click the class.

I have read that xUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use xUnit now?

It looks like there will be a compatible version of the MSTest Framework in the future --> Stack Overflow question.

For ASP.NET Core RC2:

Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2

As I don't want to switch to xUnit.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

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

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As I don't want to switch to XUnit.

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

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

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As I don't want to switch to XUnit.

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

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

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As I don't want to switch to XUnit.

added 239 characters in body
Source Link
Legends
  • 22.9k
  • 17
  • 102
  • 133

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

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

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As I don't want to switch to XUnit.

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

Update: It looks like there will be a compatible version of the MSTest Framework in the future --> SO Thread. As I don't want to switch to XUnit.

When I right-click a class in my application code in an ASP.NET MVC 4.6 project then 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 don't have this option available, when I right-click the class.

I have read that XUnit is now the recommended test framework of choice for ASP.NET Core projects. Is it not possible to use the old good Microsoft Unit Testing Framework?

Are we really forced to use XUnit now?

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

For ASP.NET Core RC2: Announcing MSTest Framework support for .NET Core RC2 / ASP.NET Core RC2 As I don't want to switch to XUnit.

added 196 characters in body
Source Link
Legends
  • 22.9k
  • 17
  • 102
  • 133
Loading
Source Link
Legends
  • 22.9k
  • 17
  • 102
  • 133
Loading