AdventOfCode/AoC_2025.Tests/Day11Test.cs

48 lines
1.2 KiB
C#

using AdvenOfCode.Contracts;
namespace AoC_2025.Tests;
public class Day11Test
{
private IPuzzleSolver<long> _sut;
private static readonly string rootPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
private readonly string TestInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day11.txt";
private readonly string Test2InputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Test\day11_2.txt";
private readonly string ProdInputPath = @$"{rootPath}\AoC-PuzzleInputs\2025\Prod\day11.txt";
public Day11Test()
{
_sut = new Day11();
}
[Fact]
public void Part01_Test_equals_5()
{
var actual = _sut.SolvePart1(TestInputPath);
Assert.Equal(5, actual);
}
[Fact]
public void Part01_Prod_equals_494()
{
var actual = _sut.SolvePart1(ProdInputPath);
Assert.Equal(494, actual);
}
[Fact]
public void Part02_Test2_equals_2()
{
var actual = _sut.SolvePart2(Test2InputPath);
Assert.Equal(2, actual);
}
[Fact]
public void Part02_Prod_equals_296006754704850()
{
var actual = _sut.SolvePart2(ProdInputPath);
Assert.Equal(296006754704850, actual);
}
}