Add 2026 Day06 solution and tests

This commit is contained in:
Sebastian Lindemeier committed 2026-12-06 11:10:38 +01:00
1 parent 9bc55fb4ed
commit 1e482b532c
3 files changed
+206 -1

No files matched your search

+47
View File
@@ -0,0 +1,47 @@
using AdvenOfCode.Contracts;
namespace AoC_2026.Tests;
public class Day06Test
{
private readonly Day06 _sut;
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
private readonly string TestInputPath = @$"{rootPath}/AoC-PuzzleInputs/2026/Test/day06.txt";
private readonly string ProdInputPath = @$"{rootPath}/AoC-PuzzleInputs/2026/Prod/day06.txt";
public Day06Test()
{
_sut = new Day06();
}
[Fact]
public void Part01_Test_equals_6()
{
var actual = _sut.SolvePart1(TestInputPath);
Assert.Equal("6", actual);
}
[Fact]
public void Part01_Prod_equals_827()
{
var actual = _sut.SolvePart1(ProdInputPath);
Assert.Equal("827", actual);
}
[Fact]
public void Part02_Test_equals_35332647()
{
var actual = _sut.SolvePart2Test(TestInputPath);
Assert.Equal("", actual);
}
[Fact]
public void Part02_Prod_equals_40767683()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal("", actual);
}
}