Files
Advent-Of-Code/AoC_2026.Tests/Day06Test.cs
T

47 lines
1.1 KiB
C#

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_1222()
{
var actual = _sut.SolvePart2Test(TestInputPath);
Assert.Equal("12,22", actual);
}
[Fact]
public void Part02_Prod_equals_4336()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal("43,36", actual);
}
}