Add Day 07 solution

This commit is contained in:
Sebastian Lindemeier
2025-12-07 17:48:20 +01:00
parent 6e3d180550
commit f0ac76df15
2 changed files with 145 additions and 0 deletions
+47
View File
@@ -0,0 +1,47 @@
using AdvenOfCode.Contracts;
namespace AoC_2025.Tests;
public class Day07Test
{
private readonly IPuzzleSolver<long> _sut;
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
private readonly string TestInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day07.txt";
private readonly string ProdInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Prod\day07.txt";
public Day07Test()
{
_sut = new Day07();
}
[Fact]
public void Part01_Test_equals_21()
{
var actual = _sut.SolvePart1(TestInputPath);
Assert.Equal(21, actual);
}
[Fact]
public void Part01_Prod_equals_1658()
{
var actual = _sut.SolvePart1(ProdInputPath);
Assert.Equal(1658, actual);
}
[Fact]
public void Part02_Test_equals_40()
{
var actual = _sut.SolvePart2(TestInputPath);
Assert.Equal(40, actual);
}
[Fact]
public void Part02_Prod_equals_53916299384254()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal(53916299384254, actual);
}
}