Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing Unit Tests in Visual Studio Code [closed]

I am new to using the Visual Studio Code in place of visual studios and i feel a little lost to how i can set up my program to include unit test.

I created a c# console app and i would like to create a test file in which i can test my main program for the console app. I am reading about all these extensions documents but i am not getting what i am expecting. I created a test extension which i have added to my main app folder. Any helpful tips to how i can integrate unit tests the same way/similar that was done in visual studios.

like image 864
bluePearl Avatar asked Oct 29 '16 08:10

bluePearl


1 Answers

You can write the same way as you do in Visual Studio. For testing the code run dotnet test in command line.

see the following link for unit tests: https://docs.microsoft.com/dotnet/articles/core/testing/unit-testing-with-dotnet-test

like image 173
hakany Avatar answered Oct 08 '22 20:10

hakany