...

/

Solution Review: Applying TDD

Solution Review: Applying TDD

Review the solution to the TDD challenge.

We'll cover the following...

The completed solution is presented in the code playground below:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>net7.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>

</Project>
Red stage implementation

First, we define all the possible string outputs as const strings, which we did on lines 5–7 of the NumbersProcessor.cs ...