From the course: Advanced ASP.NET Core: Unit Testing

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up the console testing project

Set up the console testing project - ASP.NET Core Tutorial

From the course: Advanced ASP.NET Core: Unit Testing

Start my 1-month free trial

Set up the console testing project

- [Narrator] Now that we know what our app looks like, it's time to set up our testing project. So for that, let's go to a Visual Studio. In here we are going to create a new project. So, let us right click on B solution, then go to add new project, search for xUnit, and choose the xUnit test project, the.net core version. Then click the Next button. Let us name our testing project. I'll name this project calculator app, and then dot test. So, we know that this is the unit testing project. Click the create button to create these projects. Before we write any code, let us right click and add a reference to our calculator app project because there's the project that we want to unit test. So, check the check box and then click the OK button. If we expand the dependencies inside the projects, we're going to see our calculator app. So, let us close the dependencies. We see that when we created the unit testing project, a unit…

Contents