Add Day 06 solution, needs cleanup later

This commit is contained in:
Sebastian Lindemeier
2025-12-06 10:54:11 +01:00
parent fd417a6e97
commit 47f468ff68
4 changed files with 143 additions and 8 deletions
+47
View File
@@ -0,0 +1,47 @@
using AdvenOfCode.Contracts;
namespace AoC_2025.Tests;
public class Day06Test
{
private readonly IPuzzleSolver<long> _sut;
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
private readonly string TestInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day06.txt";
private readonly string ProdInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Prod\day06.txt";
public Day06Test()
{
_sut = new Day06();
}
[Fact]
public void Part01_Test_equals_4277556()
{
var actual = _sut.SolvePart1(TestInputPath);
Assert.Equal(4277556, actual);
}
[Fact]
public void Part01_Prod_equals_6299564383938()
{
var actual = _sut.SolvePart1(ProdInputPath);
Assert.Equal(6299564383938, actual);
}
[Fact]
public void Part02_Test_equals_3263827()
{
var actual = _sut.SolvePart2(TestInputPath);
Assert.Equal(3263827, actual);
}
[Fact]
public void Part02_Prod_equals_11950004808442()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal(11950004808442, actual);
}
}