Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to I create a unit test for a Visual Studio 2015 RC / .NET Core project?

I've just started to play around with the new Visual Studio 2015 RC but I've run into a problem in that I can't seem to find an example project that shows how to unit-test the new .NET COre code. An example or even being pointed in the right direction would be very helpful. Thanks....

like image 375
Louis S. Berman Avatar asked May 03 '15 01:05

Louis S. Berman


1 Answers

You should have a look at xUnit, it was written by the author of nUnit, it's compatible with all of the new vNext goodness (Asp.Net 5, Universal Apps, and Xamirin, CoreClr) and it's what the tests for MVC vNext are written in. It also works with nCrunch.

You can install it from nuget.

like image 131
Miniver Cheevy Avatar answered Oct 01 '22 05:10

Miniver Cheevy