Solutions to Advent of Code 2025 challenges implemented in C#.
- .NET 10.0 (GA)
- C# 14 with latest language features
- TUnit for testing
src/
ConsoleApp/ # Main application
Domain/ # Domain models (Dial, Safe)
Program.cs # Entry point
input.txt # Puzzle input
tests/
ConsoleApp.Tests/ # Unit tests
dotnet builddotnet run --project src/ConsoleApp/ConsoleApp.csprojRun all tests:
dotnet testRun tests for a specific class:
dotnet test --filter "FullyQualifiedName~SafeTests"Run a specific test:
dotnet test --filter "FullyQualifiedName~SafeTests.Create_WithValidPosition_ShouldSetDialPosition"- File-scoped namespaces
- Factory pattern with static
Create()methods - C# 14
fieldkeyword in property setters - Modern validation with
ArgumentOutOfRangeException.ThrowIfLessThan/ThrowIfGreaterThan - Async/await patterns with TUnit
See LICENSE file for details.