Skip to content

Instantly share code, notes, and snippets.

@lizardkingLK
lizardkingLK / new_solution_with_tests.sh
Created January 7, 2026 06:30
A bash script that generates a new dotnet solution for C# that is TDD first and ready to run
#!/usr/bin/bash
# chmod +x ./new_solution.sh
# function declarations
function write_error
{
echo -e "\e[31m$1\e[0m"
}
@lizardkingLK
lizardkingLK / new_solution_with_tests.ps1
Last active June 25, 2025 08:27
A powershell script that generates a new dotnet solution for C# that is TDD first and ready to run
[CmdletBinding()]
param (
[Parameter(
Position = 1,
Mandatory = $true,
HelpMessage = 'Please enter solution directory to create in (i.e.: C:/Users/User/Desktop)',
ParameterSetName = 'parameters.solution')]
[string]
$solutionDirectory,