简体   繁体   中英

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....

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM