Skip to content

About

Practice Test Driven Development with .NET 9

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

Test-Driven Development with .NET 9

This repository contains exercises and examples completed during the Udemy course Test Driven Development in ASP.NET Core - The Handbook by Trevoir Williams. This repository showcases implementations using .NET 9.

Course Overview

The course covers fundamental and advanced concepts of Test-Driven Development (TDD), providing practical experience in writing clean, maintainable, and robust code using TDD principles in .NET applications.

Key Concepts Covered:

  • TDD Fundamentals: Understanding the cycle of Red, Green, Refactor.
  • xUnit: Writing and structuring effective unit tests.
  • Shouldly: Enhancing readability and clarity of assertions.
  • Moq: Mocking dependencies and isolating units of code.
  • Writing maintainable and testable code.

Technologies Used:

  • .NET 9
  • xUnit
  • Shouldly
  • Moq

GitHub Workflow

The course also includes a section demonstrating how to set up a GitHub Action workflow to automatically build and run unit tests when pushing code to GitHub. The workflow helps ensure continuous integration (CI) and immediate feedback on code changes.

  • Continuous Integration (CI) with GitHub Actions.
  • Automated build and testing pipeline.

Repository Structure

The repository includes exercises and examples demonstrating the use of TDD to achieve reliable and well-structured code.

Getting Started

Prerequisites

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/LairdLuca/TW.test-driven-dev.git
  2. Navigate into the project directory:

    cd TW.test-driven-dev
  3. Run tests from the command line:

    dotnet test

Course Link

Original Udemy Course by Trevoir Williams

Contribution

Feel free to fork, create issues, and submit pull requests to enhance the examples or add additional tests demonstrating TDD best practices.

Happy Coding! 🐱

About

Practice Test Driven Development with .NET 9

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages