In this repository you can find (visual studio) start solutions for the exercises of the .NET Essentials course of PXL-IT.
The exercises are grouped by chapter. There is a (visual studio) solution for each chapter. A chapter solution contains multiple projects:
- A WPF project for each exercise. E.g. Exercise01
- A test project for each WPF project. E.g. Exercise01.Tests
The WPF solutions are empty and waiting for you to complete them. The matching test projects contain automated tests that can be run to check if your solution is correct.
First you need to clone or download the files in this repository on your local machine. You have 2 options:
- Download a zipped copy of the repository
- Clone the repository
Click on "Clone or download" at the top right of this page. Click on "Download ZIP"
Unzip de files on your local machine and you are ready to go.
If you are familiar with Git you can also choose to clone the repository to your local machine. E.g. by using the GitHub Desktop tool.
Register on guts-web.appspot.com
To be able to send your tests results to the Guts servers you need to register via guts-web.appspot.com. After registration you will have the credentials you need to succesfully run automated tests for an exercise.
Let's assume you want to make exercise 5 of chapter 5.
- Open the solution in the folder "Chapter 5"
- Build the solution (Menu: Build -> Build Solution or Ctrl+Shift+B)
- Locate the project "Exercise 5" and set it as your startup project
- Write the code you need to write
Let's assume you are working on exercise 5 of chapter 5.
- Open the Test Explorer window (Menu: Test -> Windows -> Test Explorer)
- In the top left corner, right click on the down arrow of the group by button and group the automated tests by project. (If you don't see any tests appearing, you probably should (re)build your solution)
- Right click on the project that matches your exercise and click on Run selected tests
- The first time you run a test a popup may appear thats asks you to log in. You should fill in your credentials from guts-web.appspot.com.
Tests that pass will be green. Tests that don't pass will be red.
The name of the test gives an indication of what is tested in the automated test. If you click on a test you can also read more detailed messages that may help you to find out what is going wrong.
Although it is not a guarantee, having all tests green is a good indication that you completed the exercise correctly.
Test results of all students are sent to the Guts servers. You can check your progress and compare with the averages of other students via guts-web.appspot.com. Login, go to ".NET Essentials" in the navigation bar and select the chapter you want to view.