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 - ASP.NET Core Tutorial
From the course: Advanced ASP.NET Core: Unit Testing
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
ASP.NET Core console project overview1m 46s
-
(Locked)
Set up the console testing project5m 20s
-
(Locked)
xUnit Theory with InlineData6m 15s
-
(Locked)
Challenge: Test add and average methods51s
-
(Locked)
Solution: Test add and average methods4m 25s
-
(Locked)
xUnit Theory with MemberData4m 29s
-
(Locked)
xUnit Theory with ClassData4m 7s
-
-
-
-