C# Starter template for a dotnet core class lib and xunit framework to run a TDD dojo
To Start:
- Fork the repo if you can, it will mean all users can see different dojos and learn from them
0.1) You should create a different branch for each dojo you do
- Clone/ fork this repo.
- Open in a your favourite code editor.
- In a terminal, navigate to the /test/ directory.
- Do a dotnet restore to restore the bin and obj directories
- Running a test should fail the provided sample one.
To Run tests: (ensure you are in the /test directory) dotnet test
Dojo structure
- Write a failing test
- Pass onto the next person
- Write the minimum amount of code to make all the tests pass
- When the test(s) pass refactor your code.
- Repeat.
Troubleshooting
- The test should run and fail the first time you open the project. The test should not fail due to compliation errors.
- Make sure you have the C# extension enabled (VSCode).
- Restore Dependencies when prompted.
Adapted From: https://docs.microsoft.com/en-us/dotnet/core/testing/unit-testing-with-dotnet-test