Test-Driven Test Development
Making it Go Green
minispec.exe
Build the new MiniSpec
console project by running dotnet build
from the MiniSpec
folder.
If you look in the generated bin/Debug/*/
folder, you should now see a MiniSpec.exe
file.
We’d like to make one minor correction now and rename the generated executable to minispec.exe
We can do this by specifying <AssemblyName>minispec</AssemblyName>
in the .csproj
file.
Update MiniSpec.csproj
to the following:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
Rebuild the project with dotnet build
and you will see minispec.exe
in bin/Debug/*/
Great! That’s the filename we specified in IntegrationTest.cs
. Let’s try running that now!