A collection of exercises to practice C# and test-driven design (TDD). This is adapted from Mythical Creatures from the Turing Backend Engineering program.
Make sure you understand the concepts covered in Unit Testing I and Unit Testing II from Mod 1 of the Launch program.
In order to complete these exercises:
- Fork and clone this repo to your local machine
- Create a class for each of the mythical creatures in the test project. Note that the
unicorn.cs
class has already been created for you. - Open the test project and run your first test:
UnicornTests.cs
Video Walk-Through coming soon...
Continue to follow the errors that your test provides until the test passes. Then, unskip the next test by removing the (Skip)
property from the [Fact]
attribute. In other words, change this line:
[Fact(Skip = "Remove to run this test")]
to this:
[Fact]
Continue for each test for the current creature. Repeat this process until all tests pass for all creatures.
UnicornTests.cs
VampireTests.cs
DragonTests.cs
HobbitTests.cs