Don't Get Bitten by Hidden Bugs: Test Driven Development (TDD) and AAA Testing via xUnit

Written by samwalpole | Published 2021/01/20
Tech Story Tags: testing | tdd | csharp | dotnet | dotnet-core | xunit | test-driven-development | software-testing | web-monetization

TLDR Test Driven Development (TDD) is a software development cycle that focusses on describing the behaviour of your code first using tests, then implementing those behaviours. AAA Testing is a method for setting up a test. I like to have my test project mimic the structure of my source code projects, in terms of folder structure/namespaces etc. I implement a single test class per actual class. I also find this naming convention of test methods very useful for maintaining test code. For these examples, I will be show snippets from code that I will submit to the upcoming Hashnode Hackathon.via the TL;DR App

no story

Written by samwalpole | Fullstack .NET and JavaScript web developer. Coding teacher and advocate
Published by HackerNoon on 2021/01/20