Writing Unit Tests in Visual Studio Code

I am new to using Visual Studio Code instead of visual studios, and I have lost a little how to configure my program on unit test.

I created a C # console application, and I would like to create a test file in which I can test my main program for a console application. I read about all of these extensions, but I do not get what I expect. I created a test extension, which I added to my main application folder. Any helpful tips on how I can integrate unit tests in the same way / similar as in visual studios.

+6
source share
1 answer

You can write in the same way as in Visual Studio. To test the code, run dotnet test at the command line.

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

+5
source

Source: https://habr.com/ru/post/1011839/


All Articles