Skip to content

danielmackay/advent-of-code-2025

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2025

Solutions to Advent of Code 2025 challenges implemented in C#.

Tech Stack

  • .NET 10.0 (GA)
  • C# 14 with latest language features
  • TUnit for testing

Project Structure

src/
  ConsoleApp/           # Main application
    Domain/             # Domain models (Dial, Safe)
    Program.cs          # Entry point
    input.txt           # Puzzle input
tests/
  ConsoleApp.Tests/     # Unit tests

Getting Started

Prerequisites

Build

dotnet build

Run

dotnet run --project src/ConsoleApp/ConsoleApp.csproj

Testing

Run all tests:

dotnet test

Run tests for a specific class:

dotnet test --filter "FullyQualifiedName~SafeTests"

Run a specific test:

dotnet test --filter "FullyQualifiedName~SafeTests.Create_WithValidPosition_ShouldSetDialPosition"

Code Style

  • File-scoped namespaces
  • Factory pattern with static Create() methods
  • C# 14 field keyword in property setters
  • Modern validation with ArgumentOutOfRangeException.ThrowIfLessThan/ThrowIfGreaterThan
  • Async/await patterns with TUnit

License

See LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages